Re: [shadow-styling] clarify role of the `active shadow tree`

Upon further reflection, I think it would be better if the `active shadow
tree` and the <shadow> element had *no influence* on whether or not a
stylesheet applies.

Instead, all stylesheets in all sibling shadowRoots should always apply.
For rules without :host, there would be no detectable change since the
styles are still scoped to individual shadowRoots. However, there are
implications for the :host selector since it reaches up to the host
element. In particular, this means if there's a :host rule in an older
shadowRoot, it always applies to the host element.

I believe 90% of the time, this will be what the author wants. In the case
where it's not, the onus is on the author to override the :host styling in
the younger shadowRoot. This seems like a good tradeoff.

Received on Friday, 14 March 2014 20:00:48 UTC

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant