mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibWeb/CSS: Disallow :has() and pseudo-elements in :has() when parsing
This commit is contained in:
committed by
Andreas Kling
parent
ad1f93504e
commit
7f803c5c3d
@@ -687,4 +687,11 @@ SelectorList adapt_nested_relative_selector_list(SelectorList const& selectors)
|
||||
return new_list;
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/selectors/#has-allowed-pseudo-element
|
||||
bool is_has_allowed_pseudo_element(Selector::PseudoElement::Type)
|
||||
{
|
||||
// No spec currently defines any pseudo-elements that are allowed in :has()
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user