mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-13 13:47:17 +03:00
6ea9edf84b
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. :^) |
||
---|---|---|
.. | ||
CodeGenerators | ||
ConfigureComponents | ||
CMakeLists.txt |