- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Mon, 24 Sep 2018 08:59:45 +0000
- To: public-css-archive@w3.org
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