mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
LibWeb/CSS: Add :unchecked
pseudo-class
This just got added to the Selectors spec:
b78c97c19d
It's thus missing from the HTML spec and WPT, but I figured it was
simple enough to add.
This commit is contained in:
parent
b973c8d275
commit
632ce9523b
Notes:
github-actions[bot]
2025-07-15 19:28:57 +00:00
Author: https://github.com/AtkinsSJ
Commit: 632ce9523b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5459
Reviewed-by: https://github.com/gmta ✅
6 changed files with 34 additions and 6 deletions
|
@ -164,6 +164,9 @@
|
|||
"target": {
|
||||
"argument": ""
|
||||
},
|
||||
"unchecked": {
|
||||
"argument": ""
|
||||
},
|
||||
"user-invalid": {
|
||||
"argument": ""
|
||||
},
|
||||
|
|
|
@ -62,6 +62,7 @@ static bool can_selector_use_fast_matches(Selector const& selector)
|
|||
PseudoClass::OnlyChild,
|
||||
PseudoClass::Root,
|
||||
PseudoClass::State,
|
||||
PseudoClass::Unchecked,
|
||||
PseudoClass::Visited))
|
||||
return false;
|
||||
} else if (!first_is_one_of(simple_selector.type,
|
||||
|
|
|
@ -616,6 +616,8 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
|
|||
return element.matches_enabled_pseudo_class();
|
||||
case CSS::PseudoClass::Checked:
|
||||
return element.matches_checked_pseudo_class();
|
||||
case CSS::PseudoClass::Unchecked:
|
||||
return element.matches_unchecked_pseudo_class();
|
||||
case CSS::PseudoClass::Indeterminate:
|
||||
return matches_indeterminate_pseudo_class(element);
|
||||
case CSS::PseudoClass::HighValue:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue