Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-numbers.txt
Callum Law 778da0175e LibWeb: Clamp and censor top-level calc results
We now clamp the values returned from calc into the allowed range (where
we know it) and censor any `NaN`s to `0` both when we resolve and when
we serialize.

Gains us 76 WPT passes.
2025-08-11 17:10:04 +01:00

18 lines
481 B
Plaintext

Harness status: OK
Found 12 tests
11 Pass
1 Fail
Pass testing tab-size: calc(2 * 3)
Pass testing tab-size: calc(2 * -4)
Pass testing opacity: calc(2 / 4)
Pass testing tab-size: calc(2 / 4)
Pass testing opacity: calc(2 / 4) * 1px
Fail testing opacity: calc(90%)
Pass testing tab-size: calc(1 + 1px)
Pass testing tab-size: calc(1 + 100%)
Pass testing tab-size: calc(100%)
Pass testing tab-size: calc(10px) bla
Pass testing tab-size: calc(bla) 10px
Pass testing tab-size: calc(10px)