mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 04:04:58 +00:00
LibHTML: Various little improvements to the CSS parser
The parser now kinda recognizes immediate child selectors, !important, and various other little things. It's still extremely far from robust and/or correct. :^)
This commit is contained in:
parent
48f43a7429
commit
306b9dfb51
4 changed files with 100 additions and 15 deletions
|
@ -148,7 +148,15 @@ void dump_rule(const StyleRule& rule)
|
|||
type_description = "TagName";
|
||||
break;
|
||||
}
|
||||
dbgprintf(" %s:%s\n", type_description, component.value.characters());
|
||||
const char* relation_description = "";
|
||||
switch (component.relation) {
|
||||
case Selector::Component::Relation::None:
|
||||
break;
|
||||
case Selector::Component::Relation::ImmediateChild:
|
||||
relation_description = "{ImmediateChild}";
|
||||
break;
|
||||
}
|
||||
dbgprintf(" %s:%s %s\n", type_description, component.value.characters(), relation_description);
|
||||
}
|
||||
}
|
||||
dbgprintf(" Declarations:\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue