Re: [csswg-drafts] [selectors][css-transitions-2] `:starting-style` pseudo-class (#10356)

@dbaron I meant to include another example which I would parallel this to. When using an at-rule, you’re usually matching selectors based on the state of an upper scope, usually the document.

In that way, these two are like, as they both match a selector based on an upper-scope state:
```css
a { @media screen { … } }
b { a & { … } }
```

similarly, both of these pseudo-classes do the same:
```css
a:media(screen) { … }
b:is(a *) { … }
```

By that reasoning, I would argue that there are in fact pseudo-classes that operate near identically to that one, where `a:is(:root *) b { … }` and `a b:is(:root *) { … }` yield the same effect.

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


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

Received on Tuesday, 21 May 2024 04:39:15 UTC