mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Add ::selection to pseudo elements
This commit is contained in:
parent
6d02403e06
commit
c9af6c87bf
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/gabydd 🔰
Commit: c9af6c87bf
Pull-request: https://github.com/SerenityOS/serenity/pull/19791
3 changed files with 8 additions and 0 deletions
|
@ -363,6 +363,8 @@ Optional<Selector::PseudoElement> pseudo_element_from_string(StringView name)
|
|||
return Selector::PseudoElement::ProgressValue;
|
||||
} else if (name.equals_ignoring_ascii_case("placeholder"sv)) {
|
||||
return Selector::PseudoElement::Placeholder;
|
||||
} else if (name.equals_ignoring_ascii_case("selection"sv)) {
|
||||
return Selector::PseudoElement::Selection;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue