-
Notifications
You must be signed in to change notification settings - Fork 711
[css-position] overlay property UA sheet is not enough. #11194
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
Yes, that's not intentional. |
Could one approach be to say |
Possibly? |
I noticed the Chrome implementation doesn't set overlay on the |
See: w3c/csswg-drafts#11194 Change-Id: I7dcb5bf3f8455e9b59435c4eeb8791ffeb6860e5
The CSS Working Group just discussed
The full IRC log of that discussion<fantasai> TabAtkins: I think for this issue we should resolve to "figure out how to fix this". But it absolutely was an unintentional allowance.<fantasai> TabAtkins: overlay property, which allows things to leave top layer, is only settable on a few things <fantasai> TabAtkins: by default, UA stylesheet has 'none !important'. Can only use in transition property, can't actually set the property <fantasai> TabAtkins: But UA stylesheet only uses * <fantasai> TabAtkins: which leaves out pseudos <fantasai> TabAtkins: We don't have a way to generically refer to pseudo-elements <oriol> q+ <fantasai> TabAtkins: So leave it open to figure out the solution, but we should resolve that this is unintentional and author's can't set it on pseudo-elements <astearns> ack oriol <fantasai> oriol: In another issue, 7346, we resolved to add some kind of ? to work on it <fantasai> oriol: syntax that would allow using *:<<* and this would select all pseudo-elements that are originated and would selected all possible pseudo-elements <TabAtkins> `:>>` being the "pseudo-tree combinator" <fantasai> oriol: we could use it here <oriol> *, * :>> * { overlay: none !important } <fantasai> oriol: more work to do but it's something <astearns> ack fantasai <TabAtkins> fantasai: can we just resolve here that the ua stylesheet must apply this to * and to all pseudos? and let the ua figure out how to do it <TabAtkins> astearns: we have in the past discussed whether it should be possible to express something in the UA stylesheet that cna't be expressed in author land, and decided that it's bad <TabAtkins> fantasai: you can do it in author land, just list all pseudo-elements explicitly. we just shoudln't be maintaining that list. <fantasai> astearns: proposed that overlay: none !important also applies to all pseudos <fantasai> RESOLVED: UAs must apply 'overlay: none !important' to all pseudo-elements |
The UA sheet approach in here means that authors can control top layer rendering in pseudo-elements, see:
Which alerts
auto
in Chrome.I believe this is non-intentional.
cc @tabatkins @flackr @lilles
The text was updated successfully, but these errors were encountered: