Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-numbers.txt
Callum Law 246a1c41ff LibWeb: Don't resolve calc'd opacity percentages at parse time
This behaviour should only apply to literal percentages as clarified
here: https://github.com/w3c/csswg-drafts/commit/4ee8429

We were also doing this wrong by converting the numeric type of the calc
to Length which was causing values to be defaulted to 1 instead (hence
the new passing tests for computed values as well)
2025-09-08 11:03:32 +01:00

17 lines
474 B
Plaintext

Harness status: OK
Found 12 tests
12 Pass
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
Pass 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)