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 does top layer interact with CSS isolation? #71
Comments
It seems to me An element wouldn't have multiple stacking context (actually having multiple stacking contexts doesn't make anything different for a single element, since stacking context only affects how its descendent would be placed relative to each other in z-order). The problem for Chromium here is that, later Previously, UAs use I think the idea is that, the top layer should be rendered on top of the whole page, and nothing can cover top layer elements except another top layer element. But it seems to me the current spec still allows something in the root stacking context with a positive I guess it should be a slibing to the root stacking context, rather than a child... We probably need a CSS expert here to get things right... (I'm quite sleepy at the moment and gonna sleep soon, so I could be wrong...) |
The problem is indeed that whatever defines the CSS rendering tree needs to also define top layers. Having Fullscreen monkey patch CSS is not a good solution. Unfortunately, I believe nobody in the CSS WG is working on that. @tabatkins @fantasai? |
Right, this should be part of the Position spec, but MS dropped it and I haven't had the opportunity to really work on it. What needs to happen, roughly, is that things put into the top layer need to be reparented in the box tree to be children of the root layer (not root element), or something like that, to get the right stacking/filtering/containing behavior. Then they just render in the top layer, which is "above" all normal content. |
By specs:
You could make fullscreen itself be that context, instead of giving it just a fixed position-property. |
In https://crbug.com/673976 it was reported that the isolation property isn't reset by Fullscreen in Chromium, with https://jsfiddle.net/2qvw0asr/2/ demonstrating the problem.
As https://drafts.fxtf.org/compositing-1/#isolation talks about stacking contexts does too https://fullscreen.spec.whatwg.org/#new-stacking-layer it's not obvious how they interact. Is an UA style sheet override needed, and should the computed style for
isolation
change?Note that Chromium does not yet implement Fullscreen in terms of top layer, so it's possible that this is a non-issue spec side.
@upsuper
The text was updated successfully, but these errors were encountered: