- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 27 Jul 2021 16:38:58 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Allow authors to explicitly place unlayered styles in the cascade layer order`, and agreed to the following: * `RESOLVED: Reserve the CSS wide-keywords (making the whole layer block invalid at parse time) for now and details TBD when we have better use cases` <details><summary>The full IRC log of that discussion</summary> <emilio> topic: Allow authors to explicitly place unlayered styles in the cascade layer order<br> <emilio> github: https://github.com/w3c/csswg-drafts/issues/6323<br> <emilio> miriam: this one is another coming from an earlier resolution<br> <emilio> ... we resolved that unlayered styles are lower pri<br> <jfkthame> present-<br> <emilio> ... jen asked about whether it'd be useful to tweak the unlayered styles priority<br> <emilio> ... there's some syntax proposals in the issue<br> <Rossen_> q?<br> <emilio> ... and I'd expect it to work at each level of layering<br> <emilio> ... are we happy with an empty layer rule syntax? Does this become too complex?<br> <emilio> florian: I could see use cases for top/bottom, has any non-theoretical use case come up for in the middle?<br> <emilio> miriam: yeah, you want components at the top and resets on the bottom, so you might want most of your styles between them<br> <emilio> TabAtkins: Like florian I see the use case but I'm not sure we need to solve it right now<br> <emilio> ... we could resolve the CSS wide keywords as layer names in case we want to solve them<br> <emilio> miriam: does that become a problem if additional wide-keywords are added?<br> <Rossen_> ack fantasai<br> <emilio> TabAtkins: theoretically? But we haven't added many over the years<br> <TabAtkins> s/resolve/reserve/<br> <emilio> fantasai: we could also do something that isn't a keyword<br> <emilio> ... I don't have strong opinion on having to solve this now, and I'd be ok reserving the wide-keywords<br> <fantasai> s/keyword/keyword, like an asterisk/<br> <emilio> florian: maybe I need to re-read the minutes for when we decided to switch top/bottom, I wasn't there and it seems !important could take care of jumping to the top<br> <emilio> miriam: main reason for that was that putting them at the bottom allows progressive enhancement<br> <emilio> ... sort of like when not all browsers had media queries you'd write the specific styles in there<br> <emilio> ... but lots of people think of layers as a way to hide their resets<br> <emilio> florian: I guess I see it more like the later but that also doesn't give me a strong use case for having unlayered styles in the middle<br> <emilio> ... I'd be fine reserving the wide keywords though<br> <emilio> fantasai: so there's the question of whether we add it now, if we don't we might want to just reserve the keywords<br> <emilio> miriam: if we're not sure if it's needed I'd be ok with reserving the keywords and delaying<br> <emilio> ... since it adds a fair amount of complexity<br> <emilio> florian: what do we need by reserving the keyword? Just making them syntactically invalid?<br> <emilio> fantasai: yeah, if you define @layer with that keyword the whole block is in invalid<br> <emilio> florian: is that progressively-enhanceable? If you add a layer that doesn't work and then it starts working...<br> <emilio> fantasai: why would you type it in if it doesn't work?<br> <emilio> florian: would it be wholly invalid or just ignored?<br> <emilio> TabAtkins: could we bring that detail back to the thread?<br> <emilio> Emilio: fwiw it seems simpler to make the whole block invalid at parse time<br> <emilio> RESOLVED: Reserve the CSS wide-keywords (making the whole layer block invalid at parse time) for now and details TBD when we have better use cases<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6323#issuecomment-887663782 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 27 July 2021 16:39:00 UTC