mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:38:10 +00:00
LibWeb: Parse the -webkit-progress-bar/value pseudo elements
These will be needed for styling progress bars, sadly this can only be done with these non-standard selectors. These are, hovever, in use on real sites such as https://rpcs3.net/compatibility.
This commit is contained in:
parent
218e6d2f5e
commit
b5febe538c
4 changed files with 21 additions and 3 deletions
|
@ -352,6 +352,10 @@ Optional<Selector::PseudoElement> pseudo_element_from_string(StringView name)
|
|||
return Selector::PseudoElement::FirstLine;
|
||||
} else if (name.equals_ignoring_case("marker"sv)) {
|
||||
return Selector::PseudoElement::Marker;
|
||||
} else if (name.equals_ignoring_case("-webkit-progress-bar"sv)) {
|
||||
return Selector::PseudoElement::ProgressBar;
|
||||
} else if (name.equals_ignoring_case("-webkit-progress-value"sv)) {
|
||||
return Selector::PseudoElement::ProgressValue;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue