[webkit-dev] CSSOM View behavior for scrollLeft, scrollTop, scrollWidth etc
fwang at igalia.com
Tue Jan 30 08:21:45 PST 2018
I'd like to announce that I started to implement the behavior for
scrollLeft, scrollTop, scrollWidth, scrollHeight, scrollTo, scrollBy and
scrollingElement  as specified by the CSSOM View specification .
To summarize, the main difference is which element to use in order to
set or get the scroll properties of the viewport in standard
* The CSSOM View spec says it should be document.documentElement and
most browsers implement it that way.
* Chromium used to use document.body but this has recently been changed
to follow the CSSOM View spec .
* WebKit still uses document.body and I'm proposing to change this behavior.
Note that this is likely to break existing content. The change was
attempted in WebKit in the past but broke some non-regression tests .
Chromium people also had some issues when trying to ship the change but
things went well at the end .
For now I'm developing it under a CSSOMViewScrollingAPI developer flag.
I was able to run the tests with that flag enabled, modulo a few test
Frédéric Wang - frederic-wang.fr
More information about the webkit-dev