- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Fri, 28 Sep 2018 16:21:16 +0000
- To: public-svg-issues@w3.org
> `:host(use) > symbol` will match any "top-level" symbol element in a shadow tree, as long as the host element is a `use`. @tabatkins Are you able to add text & maybe an example to [CSS Scoping](https://drafts.csswg.org/css-scoping/) to that effect? Because it's not clear as I read the spec right now. >From [CSS Scoping](https://drafts.csswg.org/css-scoping/#host-selector): > The :host pseudo-class, when evaluated in the context of a shadow tree, matches the shadow tree’s shadow host. >From [DOM](https://dom.spec.whatwg.org/#concept-documentfragment-host), emphasis added: > an associated host (null or ___an element in a different node tree___). So if `host(use)` is selecting the host element in the light(er) tree, then the symbol is not a direct child, unless you've changed how the [`>` combinator](https://drafts.csswg.org/selectors-4/#child-combinators) works. It would certainly make this spec easier if it _did_ work that way, but reading the specs again, I'm not confident that's defined anywhere. -- GitHub Notification of comment by AmeliaBR Please view or discuss this issue at https://github.com/w3c/svgwg/issues/502#issuecomment-425489455 using your GitHub account
Received on Friday, 28 September 2018 16:21:18 UTC