mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Support the :scope pseudo class
This commit is contained in:
parent
a96ba912b3
commit
c8ebacb1c9
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/skyrising
Commit: c8ebacb1c9
Pull-request: https://github.com/SerenityOS/serenity/pull/17947
6 changed files with 23 additions and 12 deletions
|
@ -227,6 +227,7 @@ ErrorOr<String> Selector::SimpleSelector::serialize() const
|
|||
case Selector::SimpleSelector::PseudoClass::Type::Enabled:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Checked:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Active:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Scope:
|
||||
// If the pseudo-class does not accept arguments append ":" (U+003A), followed by the name of the pseudo-class, to s.
|
||||
TRY(s.try_append(':'));
|
||||
TRY(s.try_append(pseudo_class_name(pseudo_class.type)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue