Re: [csswg-drafts] [css-scoping-1] Specificity of :host, ::slotted, and :host-context doesn't seem to be defined?

Yeah, that's fair. I'll add this back to the agenda to get that point clarified.

To be clear, the question is whether the specificity of `:host(<selector>)` should be the specificity of `:host` + the specificity of `<selector>`, or just the specificity of `<selector>`.

WebKit and Gecko do the first right now, Blink does the second. Testcase is:

```html
<!doctype html>
<div id="host"></div>
<script>
  host.attachShadow({ mode: 'open' }).innerHTML = `
    <style>
      :host(*) div {
        width: 100px;
        height: 100px;
        background: green;
      }
      div {
        background: red;
      }
    </style>
    <div></div>
  `;
</script>
```

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

Received on Monday, 24 September 2018 08:59:47 UTC