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

@Loirooriol I should have provided the sample DOM structure for my example. My apologies.

For this exact & specific sample DOM structure:
```html
<html>
  <body>
    <div class="a">
      <div class="b">…</div>
    </div>
  </body>
</html>
```

Both `.a:is(:root *) .b { … }` and `.a .b:is(:root *) { … }` yield the same effect, as per this example, both `.a` and `.b` are under the `:root`, for this specific example. They clearly have different meanings and cannot be used interchangeably.
**Example:** https://codepen.io/brandonmcconnell/pen/wvbGQrQ/2c3bd4ba8d19d211524a7be68c9ae8c8

The general idea I am attempting to demonstrate is that a `:when()`, `:media()`, `:supports()`, `:starting-style()`, etc. pseudo-class would not be the first pseudo-class to allow matching a selector based on an upper scope.

-- 
GitHub Notification of comment by brandonmcconnell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10356#issuecomment-2123301418 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 19:28:16 UTC