- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 30 Jan 2018 23:22:53 +0000
- To: public-css-archive@w3.org
Look just a tiny bit upwards, in [the preceding section](https://drafts.csswg.org/css-scoping/#host-element-in-tree): > For the purpose of Selectors, a host element also appears in each of its shadow trees, with the contents of the shadow tree treated as its children. ------- > The reason I bring this up is because, if it is the case that Chrome and Safari's behavior is intended to be correct, then Chrome has a bug where this selector does not apply to <svg> elements that are children of ShadowRoots of hosts which are HTML elements: No, it's correct for that to not match; the host element is featureless and can't be matched by any selector besides :host and :host-context(). From the same section as the previous quote: > When considered within its own shadow trees, the shadow host is featureless. Only the :host, :host(), and :host-context() pseudo-classes are allowed to match it. (That said, it might be reasonable to add an extra `:host(html|*) > svg` selector to that rule.) -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2242#issuecomment-361768959 using your GitHub account
Received on Tuesday, 30 January 2018 23:23:32 UTC