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

+1 to Tab's comment in https://github.com/w3c/csswg-drafts/issues/8380#issuecomment-1414253699 and Miriam's clarification that it's not a strict de-sugaring (to handle cases where that doesn't quite work). But about matching only the last step:

> To make sure I understand what's implemented: When https://github.com/scope rules are nested, you're not currently calculating all the proximity relationships up the chain - only the final relationship.

I'm actually surprised by this. I think it's pretty confusing if you have

```
@scope (A) {
  @scope (B) {
    X { color: blue }
  }
  X { color: yellow }
}
```

and the color is yellow for an element that matches both.

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


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

Received on Wednesday, 1 March 2023 16:51:39 UTC