Re: [csswg-drafts] [cssom-view] Should the associated element to window.scroll() be the scrollingElement? (#2977)

Checking the spec again:

> The scroll-behavior property specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs. Any other scrolls, e.g. those that are performed by the user, are not affected by this property. When this property is specified on the root element, it applies to the viewport instead.

> The scroll-behavior property of the HTML body element is not propagated to the viewport. 

So it seems the intention was really to use the documentElement (not the scrollingElement).

-- 
GitHub Notification of comment by fred-wang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2977#issuecomment-684776007 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 September 2020 11:13:44 UTC