Files
ladybird/Tests/LibWeb/Text/expected/css/var-fallback-trailing-whitespace.txt
Andreas Kling 717f18909b LibWeb: Handle trailing whitespace in display value parsing
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.
2026-03-21 21:42:44 -05:00

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