mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
Removing all whitespace before parsing StyleValues seemed like a good idea back when I did it, but causes issues. Serialization cares about whether there was whitespace or not, and we also weren't removing whitespace from inside blocks and functions so it was inconsistent whether we needed to deal with whitespace or not. So currently, some parsing code is conscious of whitespace, some isn't, and some tries to be but is incorrect. Rather than try to fix all of this in a single large, messy change, this commit introduces a "strip-whitespace" flag to Properties.json. We can then disable whitespace-stripping a few properties at a time and debug any issues more easily. Eventually (hopefully soon), this will go away entirely.