diff options
author | Tobias Christiansen <tobi@tobyase.de> | 2021-05-23 22:36:36 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-05-24 02:14:11 +0430 |
commit | b53dac6e887d8afd7d829bf070125f5bea0521cc (patch) | |
tree | 71d02fd4f853b53f785de85cf8ec5b1665818531 /Userland/Libraries/LibWeb/Dump.cpp | |
parent | 4f4cde237983cfe9d9d2ebc186cb283b7262ed4a (diff) | |
download | serenity-b53dac6e887d8afd7d829bf070125f5bea0521cc.zip |
LibWeb: Add support for more pseudoclasses
:disabled, :enabled and :checked are now parsed and matched. There
surely are more nuances to consider.
Diffstat (limited to 'Userland/Libraries/LibWeb/Dump.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Dump.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp index 3a1868d8b2..9bc10bd479 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/Userland/Libraries/LibWeb/Dump.cpp @@ -375,6 +375,15 @@ void dump_selector(StringBuilder& builder, const CSS::Selector& selector) case CSS::Selector::SimpleSelector::PseudoClass::OnlyChild: pseudo_class_description = "OnlyChild"; break; + case CSS::Selector::SimpleSelector::PseudoClass::Disabled: + pseudo_class_description = "Disabled"; + break; + case CSS::Selector::SimpleSelector::PseudoClass::Enabled: + pseudo_class_description = "Enabled"; + break; + case CSS::Selector::SimpleSelector::PseudoClass::Checked: + pseudo_class_description = "Checked"; + break; } builder.appendff("{}:{}", type_description, simple_selector.value); |