mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
LibWeb: Implement the ::marker pseudo-element
This matches the marker boxes of list-items.
This commit is contained in:
parent
8411ff3f14
commit
817cd13d59
6 changed files with 10 additions and 3 deletions
|
@ -504,6 +504,8 @@ Result<Selector::SimpleSelector, Parser::ParsingResult> Parser::parse_simple_sel
|
|||
simple_selector.pseudo_element = Selector::PseudoElement::FirstLetter;
|
||||
} else if (pseudo_name.equals_ignoring_case("first-line")) {
|
||||
simple_selector.pseudo_element = Selector::PseudoElement::FirstLine;
|
||||
} else if (pseudo_name.equals_ignoring_case("marker")) {
|
||||
simple_selector.pseudo_element = Selector::PseudoElement::Marker;
|
||||
} else {
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Unrecognized pseudo-element: '::{}'", pseudo_name);
|
||||
return ParsingResult::SyntaxError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue