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

Just want to drop a few things: I think me and a lot of other developers would for sure want to use this for styling the initial state of pseudo-elements, and if it in itself would look like one, having something like `::before::initial` would be rather weird. Also, I really-really don't want us to mix the pseudo-classes and pseudo-elements.

I would agree with @nt1m who proposed an at-rule, this was also my first idea when reading the discussion about the issues with pseudo-classes/pseudo-elements. Something like `@initial { .foo {} }` or anything else.

If this works and looks differently from pseudo-elements and pseudo-classes, then instead of choosing one bad option, having a special at-rule that won't have any added confusing semantics could be better?


-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8174#issuecomment-1451529063 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:06:21 UTC