mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb/CSS: Make :has()
take a <relative-selector-list>
The spec changed this at some point.
This commit is contained in:
parent
a94282e0e8
commit
ad1f93504e
Notes:
github-actions[bot]
2024-11-14 19:08:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: ad1f93504e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2340
7 changed files with 40 additions and 14 deletions
|
@ -641,9 +641,13 @@ Parser::ParseErrorOr<Selector::SimpleSelector> Parser::parse_pseudo_simple_selec
|
|||
.languages = move(languages) }
|
||||
};
|
||||
}
|
||||
case PseudoClassMetadata::ParameterType::RelativeSelectorList:
|
||||
case PseudoClassMetadata::ParameterType::SelectorList: {
|
||||
auto function_token_stream = TokenStream(pseudo_function.value);
|
||||
auto not_selector = TRY(parse_a_selector_list(function_token_stream, SelectorType::Standalone));
|
||||
auto selector_type = metadata.parameter_type == PseudoClassMetadata::ParameterType::SelectorList
|
||||
? SelectorType::Standalone
|
||||
: SelectorType::Relative;
|
||||
auto not_selector = TRY(parse_a_selector_list(function_token_stream, selector_type));
|
||||
|
||||
return Selector::SimpleSelector {
|
||||
.type = Selector::SimpleSelector::Type::PseudoClass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue