summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Selector.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-25 17:29:38 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-25 19:35:34 +0100
commit817cd13d59e0e596dae9d23a5dd11f7c9c223027 (patch)
treef654ba6f7299b612f1450e6a169a553c47b8f832 /Userland/Libraries/LibWeb/CSS/Selector.cpp
parent8411ff3f1476080ba348bba1e454788ba55b7b04 (diff)
downloadserenity-817cd13d59e0e596dae9d23a5dd11f7c9c223027.zip
LibWeb: Implement the ::marker pseudo-element
This matches the marker boxes of list-items.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Selector.cpp')
-rw-r--r--Userland/Libraries/LibWeb/CSS/Selector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Selector.cpp b/Userland/Libraries/LibWeb/CSS/Selector.cpp
index 7bae069541..7bd98df4b0 100644
--- a/Userland/Libraries/LibWeb/CSS/Selector.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Selector.cpp
@@ -272,6 +272,8 @@ constexpr StringView pseudo_element_name(Selector::PseudoElement pseudo_element)
return "first-line"sv;
case Selector::PseudoElement::FirstLetter:
return "first-letter"sv;
+ case Selector::PseudoElement::Marker:
+ return "marker"sv;
case Selector::PseudoElement::None:
break;
}