Re: [csswg-drafts] [css-cascade-6] Specificity of Implicitly-Added `:scope` in Scoped Rules (#10196)

Should `:scope` inserted by `&` + Implicit scope root add to specificity? Blink & WebKit diverge on it:

```
<!DOCTYPE html>
<div>
  <style>
    @scope {
      & .foo {
        color: blue;
      }   
    }   
    :scope .foo {
      color: red;
    }   
  </style>
  <div class="foo">What Color?</div>
</div>
```

Shows red on Chrome dev 125.0.6382.3 and blue on Safari Technology Preview 17.4.

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


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

Received on Thursday, 18 April 2024 21:39:43 UTC