Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ::slotted()

This commit is contained in:
FranklinDM 2023-03-19 15:47:12 +08:00 committed by roytam1
commit 92b31dd255
7 changed files with 92 additions and 28 deletions

View file

@ -1393,6 +1393,7 @@ static inline bool ActiveHoverQuirkMatches(nsCSSSelector* aSelector,
if (aSelector->HasTagSelector() || aSelector->mAttrList ||
aSelector->mIDList || aSelector->mClassList ||
aSelector->IsPseudoElement() ||
aSelector->IsHybridPseudoElement() ||
// Having this quirk means that some selectors will no longer match,
// so it's better to return false when we aren't sure (i.e., the
// flags are unknown).