Re: [csswg-drafts] [css-cascade] Should 'revert' really treat animation origin as author origin? (#7083)

The CSS Working Group just discussed `[css-cascade] Should 'revert' really treat animation origin as author origin?`.

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-cascade] Should 'revert' really treat animation origin as author origin?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/7083<br>
&lt;dael> oriol: I can explain unless fantasai wants to explain<br>
&lt;dael> faceless: Go ahead<br>
&lt;dael> oriol: The thing is that according to spec when you have revert in keyframes rule, that's animation origin, and revert rolls back. Spec says animation origin is author origin and we roll back to user. Only happens for revert but not revert-layer<br>
&lt;dael> s/faceless/fantasai<br>
&lt;dael> oriol: Having this special behavior for revert surprised me when impl this in webkit where revert didn't work in keyframes<br>
&lt;dael> oriol: Seemed strange<br>
&lt;dael> oriol: Also has performance cost. By time resolving keyframe styles you have base styles of the element. At least WK not tracking which styles are from which declarations. If there's revert I have to recollect all the declarations in order to have proper behavior<br>
&lt;dael> oriol: revert-layer it's just a matter of using base style so no perf hit<br>
&lt;dael> oriol: Not just WK, check in Blink. Mentioned impl this required disabling and optimization.<br>
&lt;dael> oriol: Wondering if could change<br>
&lt;dael> oriol: Anders mentioned blink would still disable optimization due to em units<br>
&lt;dael> oriol: No strong opinion. It surprised me and maybe more consistent to align. But 2 behaviors can give more flexibility to authors<br>
&lt;Rossen_> q?<br>
&lt;dael> Rossen_: Other opinions?<br>
&lt;dael> fantasai: The main thing to think about is if you use revert in animation do you want it to revert to user style sheet? Or revert the rules for the keyframe down to just the authors regular rules<br>
&lt;dael> fantasai: From user PoV that's the question<br>
&lt;dael> fantasai: No strong opinion<br>
&lt;dael> fantasai: I think original thought is revert in author stylesheet removes what author has done. Since animations more likely to be used by author having revert roll back to no author styling made sense at time. I think dbaron proposal for that<br>
&lt;dael> Rossen_: Looking to see if dbaron is here<br>
&lt;dael> oriol: About which one can be more useful, I guess what's spec for revert may be a bit more useful since revert-layer..in most cases you can just remove the declaration. Exception is a fallback in a value<br>
&lt;dael> Rossen_: What would you prefer here? Prefer to try and resolve now?<br>
&lt;dbaron> not here<br>
&lt;dael> Rossen_: Which way would you prefer to take the resolution, oriol? If we need to wait for dbaron I'm sure he can get back to us if her doesn't agree or we wait for dbaron<br>
&lt;dael> oriol: I don't have much of an opinion. Opened for discussion and to know background. I don't have a hurry to resolve<br>
&lt;dael> oriol: Maybe we can wait for dbaron<br>
&lt;dael> Rossen_: If there's no urgency let's continue in GH. I see dbaron so I'm hoping he'll engage on GH<br>
</details>


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


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

Received on Thursday, 3 March 2022 00:12:57 UTC