mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Handle NaN and Infinite values in CSS round function
Gains us 10 WPT tests
This commit is contained in:
Notes:
github-actions[bot]
2025-08-08 10:45:07 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/4ba54a7a1c0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5719 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/gmta
@@ -2,8 +2,8 @@ Harness status: OK
|
||||
|
||||
Found 229 tests
|
||||
|
||||
211 Pass
|
||||
18 Fail
|
||||
215 Pass
|
||||
14 Fail
|
||||
Pass round(10,10) should be used-value-equivalent to 10
|
||||
Pass mod(1,1) should be used-value-equivalent to 0
|
||||
Pass rem(1,1) should be used-value-equivalent to 0
|
||||
@@ -217,18 +217,18 @@ Pass round(to-zero, 0, -Infinity) should be used-value-equivalent to 0
|
||||
Pass round(to-zero, 4, -Infinity) should be used-value-equivalent to 0
|
||||
Pass round(to-zero, -0, -Infinity) should be used-value-equivalent to calc(-0)
|
||||
Pass round(to-zero, -4, -Infinity) should be used-value-equivalent to calc(-0)
|
||||
Fail round(up, 1, Infinity) should be used-value-equivalent to calc(Infinity)
|
||||
Pass round(up, 1, Infinity) should be used-value-equivalent to calc(Infinity)
|
||||
Pass round(up, 0, Infinity) should be used-value-equivalent to 0
|
||||
Pass round(up, -1, Infinity) should be used-value-equivalent to calc(-0)
|
||||
Fail round(up, 1, -Infinity) should be used-value-equivalent to calc(Infinity)
|
||||
Pass round(up, 1, -Infinity) should be used-value-equivalent to calc(Infinity)
|
||||
Pass round(up, 0, -Infinity) should be used-value-equivalent to 0
|
||||
Pass round(up, -1, -Infinity) should be used-value-equivalent to calc(-0)
|
||||
Pass round(down, 1, Infinity) should be used-value-equivalent to calc(-0)
|
||||
Pass round(down, 0, Infinity) should be used-value-equivalent to 0
|
||||
Fail round(down, -1, Infinity) should be used-value-equivalent to calc(-Infinity)
|
||||
Pass round(down, -1, Infinity) should be used-value-equivalent to calc(-Infinity)
|
||||
Pass round(down, 1, -Infinity) should be used-value-equivalent to calc(-0)
|
||||
Pass round(down, 0, -Infinity) should be used-value-equivalent to 0
|
||||
Fail round(down, -1, -Infinity) should be used-value-equivalent to calc(-Infinity)
|
||||
Pass round(down, -1, -Infinity) should be used-value-equivalent to calc(-Infinity)
|
||||
Pass mod(-0, Infinity) should be used-value-equivalent to calc(NaN)
|
||||
Pass mod(0, -Infinity) should be used-value-equivalent to calc(NaN)
|
||||
Pass mod(-4, Infinity) should be used-value-equivalent to calc(NaN)
|
||||
|
||||
Reference in New Issue
Block a user