Re: [w3c/webcomponents] Provide a lightweight mechanism to add styles to a custom element (#468)

@annevk okay, so `:host` interpretation at selector matching varies depending on whether it has a shadow root or not.

Then after the case 1 above,

case 1+
```js
var myElement = document.querySelector('my-element');
var root = myElement.attachShadow({mode: 'open'});
root.innerHTML = `<slot></slot>`;
```

Then the `<span>Hello, World</span>` becomes *not matching* the selector.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/468#issuecomment-371386025

Received on Thursday, 8 March 2018 05:45:04 UTC