DescriptionSelectorChecker::parentElement should walk up to ShadowHost only if an element is in a shadow tree hosted by the ShadowHost and scope is the ShadowHost.
:host can only match shadow host. :host depends on context.scope with ScopeIsShadowHost behavior.
So only if context.scope is shadow host and context.element's shadow host is context.scope, we need to check the shadow host.
BUG=370303
TEST=fast/dom/shadow/style-with-cat.html, fast/dom/shadow/style-with-hat.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173703
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|