Intent to Deprecate and Remove: Element.scrollByLines() and Element.scrollByPages()

55 views
Skip to first unread message

Philip Jägenstedt

unread,
Jul 28, 2014, 5:24:16 PM7/28/14
to blink-dev

Primary eng (and PM) emails

phi...@opera.com


Summary

Remove Element.scrollByLines() and Element.scrollByPages().


Motivation

These were added in 2004 as "extension for Safari RSS":

http://trac.webkit.org/changeset/7901


Miraculously, they don't seem to have found their way onto the Web at large, and are not implemented in any other engine AFAICT.

Compatibility Risk

Content depending on these would stop scrolling and start throwing exceptions. Fortunately, such content is too uncommon to register on the use counter radar.

Alternative implementation suggestion for web developers

Increment/decrement element.scrollTop by some appropriate amount.


Usage information from UseCounter

http://www.chromestatus.com/metrics/feature/timeline/popularity/390

http://www.chromestatus.com/metrics/feature/timeline/popularity/391


Available since M38, and neither has had a non-zero value yet.


Entry on chromestatus.com, crbug.com, or MDN

None.


Requesting approval to remove too?

Yes.

Philip Jägenstedt

unread,
Jul 28, 2014, 5:32:59 PM7/28/14
to blink-dev
Correction: the use counters are available since M36, which has reached stable.

Elliott Sprehn

unread,
Jul 28, 2014, 6:34:38 PM7/28/14
to Philip Jägenstedt, blink-dev
SGTM, These can be added back in the future with options in the scrollTop dictionary instead I suspect.

Tab Atkins Jr.

unread,
Jul 28, 2014, 8:02:15 PM7/28/14
to Elliott Sprehn, Philip Jägenstedt, blink-dev
LGTM as well, same reason as Elliott.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+...@chromium.org.

Eric Seidel

unread,
Jul 29, 2014, 12:46:52 AM7/29/14
to Tab Atkins Jr., Elliott Sprehn, Philip Jägenstedt, blink-dev
lgtm

Dimitri Glazkov

unread,
Jul 29, 2014, 12:56:13 AM7/29/14
to Eric Seidel, Tab Atkins Jr., Elliott Sprehn, Philip Jägenstedt, blink-dev
LGTM2

Jochen Eisinger

unread,
Jul 29, 2014, 5:02:27 AM7/29/14
to Dimitri Glazkov, Eric Seidel, Tab Atkins Jr., Elliott Sprehn, Philip Jägenstedt, blink-dev
lgtm3
Reply all
Reply to author
Forward
0 new messages