DescriptionPseudo element ids != NOPSEUDO only in rightmost compound.
After landing [1], selectors with pseudo elements will only be valid if
the pseudo element is in the rightmost compound. Invalid selectors will
be dropped at parse time. Hence, there's no need to check this
condition during matching. Also, pseudo element selectors for which
CSSSelector::pseudoId() returns NOPSEUDO, are handled in the switch
above the modified code.
[1] https://codereview.chromium.org/1600793002/
R=esprehn@chromium.org,timloh@chromium.org
TEST=CSSSelectorParserTest::InvalidPseudoElementInNonRightmostCompound
BUG=489481
Committed: https://crrev.com/04a9adb2a53febc3e9b0c91623da9f2f02c61af3
Cr-Commit-Position: refs/heads/master@{#370356}
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 9 (4 generated)
|