-
Notifications
You must be signed in to change notification settings - Fork 715
[css-overscroll] the target of overscroll-behavior should be scrolling box instead of scroll container? #6523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
When I opened this issue, I was naively thinking all not-scrolling-box should not respect overscroll-behavior properties. That said, I think now, in the case of viewports things are a bit more complicated. So for example, if the top level content document specifies Also note that if another website embeds such sites in iframes, users expect the embedded sites not to capture the swipe gestures, instead the users want to scroll the outer document if the embedded documents are not scrollable at all. |
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
I think it's helpful if scrolling on an Many people are looking for a way to prevent background scrolling when a modal dialog is open. Some people use
If scrolling on an element with no scroll range doesn't hand off, we can just write as |
I tested it on Chrome Canary 110.0.5453.0, it does still hand off. |
I found there's an open spec issue for such case. |
Sorry, my examination was incomplete. On Chrome, scrolling by mouse wheel or two-finger swipe doesn't hand off but scrolling by Arrow/PageUp/PageDown key does hand off.
Thank you for letting me know! |
I agree with this, |
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
…lable APZCs for scrolling handoff. r=botond This behavior is not compliant with the CSS overscroll behavior spec. The spec clearly explains that overscroll-behavior applies to scroll container elements. But overflow: hidden elements can be scroll container elements, thus the property should be respected in terms of the spec definitions. That said, Chrome has been doing this behavior since 2017 [1], [1] https://bugs.chromium.org/p/chromium/issues/detail?id=759209 [2] w3c/csswg-drafts#6523 Differential Revision: https://phabricator.services.mozilla.com/D122199
An example;
In my understandings with the current spec text (i.e. "applied to scroll container"), scrolling on the overflow: hidden element shouldn't be handed off to the outer one, but in fact both Chrome and Firefox hand off it to the outer.
The text was updated successfully, but these errors were encountered: