Re: [csswg-drafts] [css-cascade] `revert-layer` keyword in style attribute (#6743)

The CSS Working Group just discussed `revert-layer keyword in style attr`, and agreed to the following:

* ``RESOLVED: Accept suggested behavior, where `revert-layer !important` in style attr only reverts the style-attr origins and the animations origin, ignoring other author origins``

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> Topic: revert-layer keyword in style attr<br>
&lt;TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/6743#issuecomment-971826541<br>
&lt;TabAtkins> miriam: we talked about this a few weeks ago, and resolved that the revert-layer keyword in a style attr should only revert the style attr.<br>
&lt;TabAtkins> miriam: but that becomes complex and unclear when thinking about how style relates to normal and important layers<br>
&lt;TabAtkins> miriam: we've drawn some diagrams in the thread about different ways this could work<br>
&lt;TabAtkins> miriam: main question is: if you use `revert-layer !important` in a style attr, is that still only revert the style attr, and maybe the animations layer, but no author layers? Or is it also reverting important author layers, taking you down to normal author layers?<br>
&lt;Rossen_> q?<br>
&lt;TabAtkins> miriam: I think we meant the former, but there's some confusion there.<br>
&lt;Rossen_> ack BoCupp<br>
&lt;Zakim> BoCupp, you wanted to say in Florian's example state of the range is changed, and if a range intersects a contained element and its state changes its allowed to invalidate its<br>
&lt;Zakim> ... painting<br>
&lt;TabAtkins> miriam: proposal is that setting `revert-layer !important` in the style attr, it reverts the style-attr layer, the animations layer, and nothing else<br>
&lt;TabAtkins> fantasai: looking at the ascii diagram from Xiaocheng, most revert behaviors cut from the important to the normal origin, and remove everything between those two points<br>
&lt;TabAtkins> fantasai: but because style attr is weird, on top of both normal and important, if we similarly cut thru like that, it'll remove important styles from layers but not the normal styles from those layers<br>
&lt;TabAtkins> fantasai: so i think because it's likely to break expectations of someone writing a layer to remove the important part but not the normal part, i think it's better to do this skipping behavior<br>
&lt;TabAtkins> fantasai: a little concerned about how this plays out in impls, but since Xiaocheng wants it, i think we should go with it<br>
&lt;fantasai> TabAtkins: Looked it over before the meeting, and with you all and Xiaocheng agreeing, I'm happy to go with this<br>
&lt;TabAtkins> Rossen_: objections?<br>
&lt;TabAtkins> RESOLVED: Accept suggested behavior, where `revert-layer !important` in style attr only reverts the style-attr origins and the animations origin, ignoring other author origins<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6743#issuecomment-984180158 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 2 December 2021 00:27:11 UTC