1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Add :not pseudoclass to the CSS parser

The selector given in the :not() is stored in the SimpleSelector as a
String.
This commit is contained in:
Tobias Christiansen 2021-05-23 20:59:26 +02:00 committed by Linus Groh
parent 78f3bad7e6
commit 1ab82afee6
3 changed files with 9 additions and 0 deletions

View file

@ -384,6 +384,9 @@ void dump_selector(StringBuilder& builder, const CSS::Selector& selector)
case CSS::Selector::SimpleSelector::PseudoClass::Checked:
pseudo_class_description = "Checked";
break;
case CSS::Selector::SimpleSelector::PseudoClass::Not:
pseudo_class_description = "Not";
break;
}
builder.appendff("{}:{}", type_description, simple_selector.value);