Re: [csswg-drafts] [cascade-6] Unclear proximity for scoped descendant combinator (#8380)

> how close is the final matched element to the nearest scope root?

I still don't think that's clear.

```css
@sibling-scope (.a) {
  @scope (.b) {
    .c { color: blue }
  }
}
```
```html
<div class="a"></div>
<div class="b" id="b1">
  <div class="b" id="b2">
    <div class="c"></div>
  </div>
</div>
```

Does it mean that the rule will not apply, since the closest `.b` has no `.a` previous sibling?
Does it mean that the rule will apply, matching `.b` as `#b1`, but for the number of `>>` hops we use `#b2`? Do we also count the number of `~~` hops from `#b2` (NaN?) ?


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


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

Received on Wednesday, 1 February 2023 22:53:25 UTC