mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
![]() This brings us a few nice benefits: - We only generate a `StyleValueList` for properties that accept multiple values. - We reject declarations that have too many values. - We check the type of each value that is parsed, to make sure it's acceptable to the property. Probably there are some regressions here, since this is Later, we can also replace many of the `is_foo()` functions and lambas inside the Parser with more calls to `property_accepts_value()`. Also we can remove some checks when resolving styles, since only valid types of values will get to that point. But one step at a time. :^) |
||
---|---|---|
.. | ||
DeclarationOrAtRule.h | ||
Parser.cpp | ||
Parser.h | ||
StyleBlockRule.h | ||
StyleComponentValueRule.h | ||
StyleDeclarationRule.h | ||
StyleFunctionRule.h | ||
StyleRule.h | ||
StyleRules.cpp | ||
Token.cpp | ||
Token.h | ||
Tokenizer.cpp | ||
Tokenizer.h |