- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Dec 2021 00:27:09 +0000
- To: public-css-archive@w3.org
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> <TabAtkins> Topic: revert-layer keyword in style attr<br> <TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/6743#issuecomment-971826541<br> <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> <TabAtkins> miriam: but that becomes complex and unclear when thinking about how style relates to normal and important layers<br> <TabAtkins> miriam: we've drawn some diagrams in the thread about different ways this could work<br> <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> <Rossen_> q?<br> <TabAtkins> miriam: I think we meant the former, but there's some confusion there.<br> <Rossen_> ack BoCupp<br> <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> <Zakim> ... painting<br> <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> <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> <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> <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> <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> <fantasai> TabAtkins: Looked it over before the meeting, and with you all and Xiaocheng agreeing, I'm happy to go with this<br> <TabAtkins> Rossen_: objections?<br> <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