1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibWeb: Recognise the ::placeholder pseudo element

This doesn't give it any functionality.
This commit is contained in:
Luke Wilde 2022-11-05 15:17:33 +00:00 committed by Andreas Kling
parent dfad2d4c13
commit 1fbad9caaf
Notes: sideshowbarker 2024-07-17 04:42:08 +09:00
3 changed files with 9 additions and 1 deletions

View file

@ -356,6 +356,8 @@ Optional<Selector::PseudoElement> pseudo_element_from_string(StringView name)
return Selector::PseudoElement::ProgressBar;
} else if (name.equals_ignoring_case("-webkit-progress-value"sv)) {
return Selector::PseudoElement::ProgressValue;
} else if (name.equals_ignoring_case("placeholder"sv)) {
return Selector::PseudoElement::Placeholder;
}
return {};
}