mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
![]() When parsing shorthand values, we'd like to use `property_initial_value()` to get their longhand property values, instead of hard-coding them as we currently do. That involves recursively calling that function while the `initial_values` map is being initialized, which causes problems because the shorthands appear alphabetically before their longhand components, so the longhands aren't initialized yet! The solution here is to perform 2 passes when generating the code, outputting properties without "longhands" first, and the rest after. This could potentially cause issues when shorthands have multiple levels, in particular `border` -> `border-color` -> `border-left-color`. But, we do not currently define a default value for `border`, and `border-color` takes only a single value, so it's fine for now. :^) |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Generate_CSS_PropertyID_cpp.cpp | ||
Generate_CSS_PropertyID_h.cpp | ||
Generate_CSS_ValueID_cpp.cpp | ||
Generate_CSS_ValueID_h.cpp | ||
WrapperGenerator.cpp |