W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

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

From: Frédéric Wang via GitHub <sysbot+gh@w3.org>
Date: Tue, 01 Sep 2020 11:17:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-684777936-1598959068-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:15 UTC