mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/CSS: Disallow :has() and pseudo-elements in :has() when parsing
This commit is contained in:
parent
ad1f93504e
commit
7f803c5c3d
Notes:
github-actions[bot]
2024-11-14 19:08:37 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7f803c5c3d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2340
6 changed files with 45 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue