mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibHTML: Support the :empty pseudo class
This commit is contained in:
parent
a32cae4c3b
commit
085cafd80a
Notes:
sideshowbarker
2024-07-19 10:50:08 +09:00
Author: https://github.com/awesomekling
Commit: 085cafd80a
5 changed files with 35 additions and 0 deletions
|
@ -325,6 +325,8 @@ public:
|
|||
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::FirstChild;
|
||||
else if (pseudo_name == "last-child")
|
||||
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::LastChild;
|
||||
else if (pseudo_name == "empty")
|
||||
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::Empty;
|
||||
}
|
||||
|
||||
return simple_selector;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue