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

I mean, the equivalent `@scope` was just written incorrectly. The actual desugaring of `A >> B C >> D` is:

```
@scope (A) {
  @scope (:scope B C) {
    :scope D {...}
  }
}
```

That *does* match the identical set of elements.

The only significant thing is the fact that you can write something like `A :is(B >> C) D`, which *can't* be desugared into a `@scope`. We can just disallow that and only allow `>>` at the top level of a selector.

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


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

Received on Thursday, 2 February 2023 19:28:14 UTC