Re: [csswg-drafts] [specificity] Specifity of ::slotted() is greater than :host

Yeah, it also seems a bit unnatural to me the implications this has for the `style` attribute. For example, this means that `style="foo!important"` can be overriden by an !important `:host` rule of its shadow host:

```html
<!doctype html>
<div id="host" style="color: purple !important"></div>
<script>
  host.attachShadow({ mode: "open" }).innerHTML = `
    <style>:host { color: blue !important; }</style>
  `;
</script>
```

But I guess it's ok, I guess I can see cases where shadow trees really don't want their styles overriden by anything.

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

Received on Wednesday, 18 April 2018 10:30:31 UTC