mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +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
|
@ -75,6 +75,7 @@ struct PseudoClassMetadata {
|
|||
ForgivingRelativeSelectorList,
|
||||
Ident,
|
||||
LanguageRanges,
|
||||
RelativeSelectorList,
|
||||
SelectorList,
|
||||
} parameter_type;
|
||||
bool is_valid_as_function;
|
||||
|
@ -174,6 +175,8 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
|||
parameter_type = "Ident"_string;
|
||||
} else if (argument_string == "<language-ranges>"sv) {
|
||||
parameter_type = "LanguageRanges"_string;
|
||||
} else if (argument_string == "<relative-selector-list>"sv) {
|
||||
parameter_type = "RelativeSelectorList"_string;
|
||||
} else if (argument_string == "<selector-list>"sv) {
|
||||
parameter_type = "SelectorList"_string;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue