mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -111,6 +111,7 @@ public:
|
|||
Where,
|
||||
Active,
|
||||
Lang,
|
||||
Scope,
|
||||
};
|
||||
Type type;
|
||||
|
||||
|
@ -292,6 +293,8 @@ constexpr StringView pseudo_class_name(Selector::SimpleSelector::PseudoClass::Ty
|
|||
return "where"sv;
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Lang:
|
||||
return "lang"sv;
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Scope:
|
||||
return "scope"sv;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue