- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 11 Feb 2021 23:14:45 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `CSS Cascade 5`, and agreed to the following: * `RESOLVED: Add revert-layer to Cascade 5` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: CSS Cascade 5<br> <bkardell_> q-<br> <Rossen_> github: https://github.com/w3c/csswg-drafts/issues/5793<br> <fantasai> miriam: Cascade layers work like origins in that they stack on top of each other, containing specificity<br> <fantasai> miriam: with origins, useful to revert to previous origns<br> <fantasai> miriam: suggestion that this might be useful for layers<br> <fantasai> miriam: might be possible also to say which level to revert to<br> <fantasai> miriam: but that's the question here<br> <fantasai> florian: I think we need at least one<br> <fantasai> florian: if pple use and need more, can extend further<br> <bkardell_> Rossen_: my q was whether we would want to put switch stuff in that same spec for now<br> <argyle> q+<br> <fantasai> argyle: would be useful<br> <Rossen_> ack argyle<br> <fantasai> argyle: seems likely that I'd want to revert down to a particular layer<br> <fantasai> argyle: think of Island app want to import their 3 layers<br> <fantasai> argyle: might want to revert down to a particular one<br> <argyle> background-color: revert(bootstrap);<br> <fantasai> s/Rossen_: my q/Rossen_, my q/<br> <leaverou> what about revert just reverts to the result of every other layer being applied *but* the current layer?<br> <fantasai> miriam: I'm open to both<br> <fantasai> leaverou, that's * {all: revert} at the start of your style sheet<br> <fantasai> [missed]<br> <fantasai> florian: behavior is obvious, can spec both and see which ones have been implemented<br> <leaverou> fantasai: I thought that reverted the entire current origin?<br> <fantasai> Rossen_: ?? much easier to implement<br> <dlibby> q+<br> <fantasai> Rossen_: specific-level revert is easier<br> <fantasai> dlibby: for specific-layer revert, any concerns wrt footgun for authors<br> <fantasai> dlibby: if referring to specific layer not applied yet?<br> <fantasai> s/specific-level/revert-to-previous-layer/<br> <argyle> `background: revert(bootstrap, 'hotpink');`<br> <fantasai> Rossen_: can refer to these as target-revert vs immediate-revert<br> <fantasai> fantasai: current-level-revert<br> <fantasai> florian: Seems confusing<br> <fantasai> florian: targetted one, doesn't revert a particular layer, reverts all layers down to named one<br> <fantasai> florian: if there's nothing there, it applies styles from previous layers<br> <fantasai> dlibby: Florian might have answered, but if you didn't have layer with particular name / hasn't been applied, seems odd to target something might come later in the cascade<br> <Rossen_> fantasai: my take, let's do the immediate layer revert. It is simpler to implement and spec. Say cascade 5 includes this and build use cases from there.<br> <florian> +1<br> <Rossen_> fantasai: let's keep it simple and start from there<br> <Rossen_> q?<br> <Rossen_> ack fantasai<br> <astearns> perhaps a note with the possible extension and an ask for use cases for it?<br> <fantasai> sure<br> <fantasai> Rossen_: Current proposal is go with current-level-revert for Cascade 5<br> <fantasai> fantasai: proposed name is revert-layer<br> <fantasai> fantasai: if no immediate suggestions to rename, let's go with that<br> <fantasai> RESOLVED: Add revert-layer to Cascade 5<br> <fantasai> <br duration=10min><br> <jfkthame> present-<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5793#issuecomment-777858060 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 11 February 2021 23:14:48 UTC