-
Notifications
You must be signed in to change notification settings - Fork 43
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
How should UAs hide root element scrollbars? #236
Comments
cc @upsuper |
I found some context around Gecko in https://bugzilla.mozilla.org/show_bug.cgi?id=1201798 |
Seems Gecko chose custom code to avoid frame reconstruction when going fullscreen? In which case |
... and the fullscreen element is not the root element, which is correctly reflected in your standardized UA style, though :) We used custom code in Gecko both to avoid frame reconstruction and to remove It seems that Gecko style code has got finer-grained update over I guess a standardized way using |
Is this behavior currently overridable by websites in Gecko? Just wondering whether |
I don't think it's overridable by websites in Gecko, and conceptually I don't think it should be either, so I'd say |
I think the code that makes this work in Chromium is this: :root:-webkit-full-screen-ancestor {
overflow: hidden !important;
}
Specifying this with |
What is the issue with the Fullscreen API Standard?
All existing UAs currently hide the root element scrollbars when fullscreen, but they all do so in different ways:
overflow: hidden !important
UA rule on*|*:root:-webkit-full-screen-document:not(:fullscreen)
I wonder if we can get a standardized way of doing this. Something like:
(UAs may not necessarily want to use :has() for performance reasons, but the idea would be something like Safari implements).
Also, not sure if clip or hidden is closer to the wanted behavior here, but I think I'd be OK with either.
cc @whatwg/css
The text was updated successfully, but these errors were encountered: