Re: [csswg-drafts] [css-overscroll-1] Should overscroll-behavior change the behavior of a subframe? (#5129)

I think @smfr has been confused by my (probably incorrect) initial WebKit's patch and testcase at https://bugs.webkit.org/show_bug.cgi?id=176454 where I used something like `<iframe style="overscroll-behavior: none">` 

Reading the current overscroll-behavior spec, overscroll-behavior only applies to scroll containers (https://drafts.csswg.org/css-overflow-3/#scroll-container i.e. have scroll overflow as specified by overflow-x/overflow-y). So I don't think overscroll-behavior applies to iframe.

I think it would be consistent with scroll-behavior here, which applies to scrolling boxes ( https://drafts.csswg.org/cssom-view/#scrolling-box ) instead and says " When this property is specified on the root element, it applies to the viewport instead.".

See also the related #2977 about whether the property should be read on the root element or on the scrolling element. This only matters for quirks mode.

-- 
GitHub Notification of comment by fred-wang
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5129#issuecomment-684777936 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:17:51 UTC