You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However the following shows red in both Blink and WebKit, when I expected it to show green:
<!doctype html><divid="host"><span>In host</span></div><script>letroot=host.attachShadow({mode: "open"});root.innerHTML=` <style>:host { background: red }</style> <style>#host:host { background: green }</style> <span>In root</span> `;</script>
Should this be specified better? Am I misreading the spec or missing something? I'm looking into implementing this in Firefox and I really didn't expect to have to just copy whatever WebKit and Blink are doing.
The text was updated successfully, but these errors were encountered:
There's nothing said in https://drafts.csswg.org/css-scoping/#host-selector about whether
:host
is the only thing allowed in a compound selector.However the following shows red in both Blink and WebKit, when I expected it to show green:
Should this be specified better? Am I misreading the spec or missing something? I'm looking into implementing this in Firefox and I really didn't expect to have to just copy whatever WebKit and Blink are doing.
The text was updated successfully, but these errors were encountered: