mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement the :has()
pseudo-class
See https://drafts.csswg.org/selectors-4/#relational.
This commit is contained in:
parent
be1075e673
commit
f63a945ba0
Notes:
sideshowbarker
2024-07-17 02:22:23 +09:00
Author: https://github.com/dzfrias
Commit: f63a945ba0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/613
Reviewed-by: https://github.com/AtkinsSJ ✅
21 changed files with 203 additions and 17 deletions
|
@ -72,6 +72,7 @@ struct PseudoClassMetadata {
|
|||
ANPlusBOf,
|
||||
CompoundSelector,
|
||||
ForgivingSelectorList,
|
||||
ForgivingRelativeSelectorList,
|
||||
Ident,
|
||||
LanguageRanges,
|
||||
SelectorList,
|
||||
|
@ -167,6 +168,8 @@ PseudoClassMetadata pseudo_class_metadata(PseudoClass pseudo_class)
|
|||
parameter_type = "CompoundSelector"_string;
|
||||
} else if (argument_string == "<forgiving-selector-list>"sv) {
|
||||
parameter_type = "ForgivingSelectorList"_string;
|
||||
} else if (argument_string == "<forgiving-relative-selector-list>"sv) {
|
||||
parameter_type = "ForgivingRelativeSelectorList"_string;
|
||||
} else if (argument_string == "<ident>"sv) {
|
||||
parameter_type = "Ident"_string;
|
||||
} else if (argument_string == "<language-ranges>"sv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue