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:
Andreas Kling 2019-10-06 09:28:10 +02:00
parent 48f43a7429
commit 306b9dfb51
Notes: sideshowbarker 2024-07-19 11:48:19 +09:00
4 changed files with 100 additions and 15 deletions

View file

@ -6,6 +6,7 @@
struct StyleProperty {
String name;
NonnullRefPtr<StyleValue> value;
bool important { false };
};
class StyleDeclaration : public RefCounted<StyleDeclaration> {