Re: [csswg-drafts] [selectors-4] Add pseudo-class to establish before-change style for css-transitions on new elements. (#8174)

In terms of developer experience and intuitiveness, @kizu's proposal is a lot better than a pseudo-class/element. I think the names could be bikeshed, but this is closer to my mental model of how I see this issue.

> I guess, this could come too close to mixins though — I immediately though of using an infinite transition to always apply that initial state, and how it could interplay with CSS variables etc etc :) So maybe just @initial-state selector {} or @initial-state { selector {} } could be better in that it won't deal with the dynamic custom properties.

I think the pseudo-class/element would have the same issue though, since the whole point is for them to work with transitions.


-- 
GitHub Notification of comment by nt1m
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8174#issuecomment-1451566130 using your GitHub account


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

Received on Thursday, 2 March 2023 09:32:31 UTC