mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Absolutize CalculatedSVs in StyleComputer::absolutize_values
This commit is contained in:
Notes:
github-actions[bot]
2025-08-06 16:46:20 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/a2ceed27e23 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5699 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -2,12 +2,11 @@ Harness status: OK
|
||||
|
||||
Found 7 tests
|
||||
|
||||
5 Pass
|
||||
2 Fail
|
||||
Fail testing width: calc(5px * 10lh / 1px)
|
||||
7 Pass
|
||||
Pass testing width: calc(5px * 10lh / 1px)
|
||||
Pass testing width: calc(20% * 0.5em / 1px)
|
||||
Pass testing width: calc(4px * 4em / 1px)
|
||||
Fail testing width: calc(400px / 4lh * 1px)
|
||||
Pass testing width: calc(400px / 4lh * 1px)
|
||||
Pass testing width: calc(20% / 0.5em * 1px)
|
||||
Pass testing width: calc(52px * 1px / 10%)
|
||||
Pass testing width: calc(100px * 1px / 1px / 1)
|
||||
@@ -2,8 +2,8 @@ Harness status: OK
|
||||
|
||||
Found 233 tests
|
||||
|
||||
206 Pass
|
||||
27 Fail
|
||||
209 Pass
|
||||
24 Fail
|
||||
Pass abs(1) should be used-value-equivalent to 1
|
||||
Pass sign(1) should be used-value-equivalent to 1
|
||||
Pass abs(-1) should be used-value-equivalent to 1
|
||||
@@ -208,14 +208,14 @@ Pass abs(-1grad) should be used-value-equivalent to 1grad
|
||||
Pass abs(-1rad) should be used-value-equivalent to 1rad
|
||||
Pass abs(-1turn) should be used-value-equivalent to 1turn
|
||||
Pass sign(10px - 1em) should be used-value-equivalent to 0; fontSize=10px
|
||||
Fail sign(10px - 2em) should be used-value-equivalent to -1; fontSize=10px
|
||||
Pass sign(10px - 2em) should be used-value-equivalent to -1; fontSize=10px
|
||||
Pass calc(sign(10%) * 100px) should be used-value-equivalent to 100px
|
||||
Fail calc(2.5 - sign(41px - 2em) / 2) should be used-value-equivalent to 2
|
||||
Fail calc(2.5 - sign(40px - 2em) / 2) should be used-value-equivalent to 2.5
|
||||
Fail calc(2.5 - sign(39px - 2em) / 2) should be used-value-equivalent to 3
|
||||
Fail calc(3 + sign(42px - 2em)) should be used-value-equivalent to 4
|
||||
Pass calc(3 + sign(42px - 2em)) should be used-value-equivalent to 4
|
||||
Pass calc(3 + sign(40px - 2em)) should be used-value-equivalent to 3
|
||||
Fail calc(3 + sign(38px - 2em)) should be used-value-equivalent to 2
|
||||
Pass calc(3 + sign(38px - 2em)) should be used-value-equivalent to 2
|
||||
Pass calc(50px + 100px * sign(42px - 2em)) should be used-value-equivalent to 150px
|
||||
Pass calc(50px + 100px * sign(40px - 2em)) should be used-value-equivalent to 50px
|
||||
Pass calc(50px + 100px * sign(38px - 2em)) should be used-value-equivalent to -50px
|
||||
|
||||
Reference in New Issue
Block a user