mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
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)
17 lines
474 B
Plaintext
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) |