DescriptionDon't add rule feature data for rules which may never match.
:host and :host-context must always be in the rightmost compound with
no other simple selectors except a succeding pseudo element in order to
match as the host element is feature-less in that context. It's however
not an invalid selector according to the CSS Scoping spec, so we
shouldn't drop it at parse time.
We could potentially skip adding other selectors to rulesets as well
including selectors like:
:hover:not(:hover), div:not(div), ::content and ::slotted not in
shadow trees, etc.
R=kochi@chromium.org,ericwilligers@chromium.org
BUG=489481
Committed: https://crrev.com/6c4b4fbb5192fb3624d428172cdf916013bc5a2e
Cr-Commit-Position: refs/heads/master@{#376116}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 12 (4 generated)
|