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

I did an implementation in Blink with a conditional @-rule: https://chromium-review.googlesource.com/c/chromium/src/+/4304021

I think this looks very ergonomic with nesting:

```css
div {
  transition: background-color 1s;
  background-color: lime;
  @initial { background-color: green; }
}
```


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


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

Received on Friday, 3 March 2023 12:30:32 UTC