mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-18 00:02:01 +00:00
LibWeb: Implement the :focus-within selector
This matches if it has focus, or any nodes inside it do.
This commit is contained in:
parent
4827092554
commit
d60b3be29a
Notes:
sideshowbarker
2024-07-17 17:02:53 +09:00
Author: https://github.com/AtkinsSJ
Commit: d60b3be29a
Pull-request: https://github.com/SerenityOS/serenity/pull/13156
Reviewed-by: https://github.com/linusg
4 changed files with 12 additions and 0 deletions
|
@ -405,6 +405,9 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
|
|||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Focus:
|
||||
pseudo_class_description = "Focus";
|
||||
break;
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::FocusWithin:
|
||||
pseudo_class_description = "FocusWithin";
|
||||
break;
|
||||
case CSS::Selector::SimpleSelector::PseudoClass::Type::Empty:
|
||||
pseudo_class_description = "Empty";
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue