Intent to implement and ship: document.scrollingElement

Skip to first unread message

Boris Zbarsky

Apr 13, 2015, 3:20:46 PM4/13/15
Summary: A property that makes it possible for web pages to tell which
element's scroll* attributes reflect the viewport scroll state. This is
needed because currently web pages have different codepaths (using
document.body vs document.documentElement) for different browsers based
on UA sniffing, which keeps Blink and WebKit from switching to our (and
the standard's) behavior. With this property the page could have a
single codepath using document.scrollingElement and ditch the UA
sniffing and then Blink/WebKit could switch their behavior, as long as
they change both scroll* and .scrollingElement at the same time.

Bug: which has
links to some of the other discussion.


Platforms: All of them.

Preference: none.

DevTools bug: Don't think this needs devtools work.

Support in other UAs: Chrome is actively working on this, so they can
update to the spec for scroll* sooner rather than later.

Target release: Gecko 40.

Reply all
Reply to author
0 new messages