mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
The height and depth attributes are parsed individually and then combined into a `calc()` expression. Bare zero is valid as a standalone CSS length but inside `calc()` it is typed as a number, so `calc(0 + 0)` fails to parse as a length. We now check the parsed value is valid to avoid a crash.