DescriptionOnly :host and :ancestor should ever match the host in a ShadowRoot
We were blocking tag, id and class from matching when put before :host, but were
not correctly stopping things like :first-child:host or *:host.
Instead of trying to black list selectors we need to whitelist :host and
:ancestor as being special.
It turns out we did have test coverage for this, but the expected results were
all wrong so it printed PASS even though we were failing what the test was
supposed to be testing.
BUG=355149, 355158
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169799
Patch Set 1 #Patch Set 2 : Fix * #Patch Set 3 : rebaseline tests #Patch Set 4 : wrong type of selector #Patch Set 5 : remove printf #Patch Set 6 : Fix tests #Patch Set 7 : Add a test for :first-child too #Messages
Total messages: 7 (1 generated)
|