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

:initial as a pseudo class instead of ::initial pseudo element also means we have issues with :is/:where etc:

```html
<style>
  :is(.a, div:initial, .b) {}
</style>
<div></div>
<div class="a"></div>
<div class="b"></div>
```

Implementations would typically stop matching when a matching selector is found. If :initial is allowed inside :is/:where we would have to match all to detect if the extra before-change style needs to be computed.


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


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

Received on Tuesday, 31 January 2023 14:43:52 UTC