mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
When a var() fallback value contained trailing whitespace (e.g. `var(--foo, flex )`), parse_display_value() miscounted the tokens. The remaining_token_count() check included whitespace tokens, routing single-keyword values like "flex" to the multi-component path. The multi-component parser then failed when encountering the trailing whitespace token. Fix this by counting only non-whitespace tokens for the single vs multi-component routing decision, and by skipping whitespace in the multi-component parsing loop.
9 lines
183 B
Plaintext
9 lines
183 B
Plaintext
display no-space: flex
|
|
display trailing-space: flex
|
|
display extra-spaces: flex
|
|
display multi: inline-flex
|
|
color: rgb(255, 0, 0)
|
|
position: absolute
|
|
visibility: hidden
|
|
nested-var: grid
|