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 162 tests
|
||||
|
||||
154 Pass
|
||||
8 Fail
|
||||
156 Pass
|
||||
6 Fail
|
||||
Pass sign(calc(-0)) should be used-value-equivalent to 0
|
||||
Pass clamp(-1, 1 / sign(calc(-0)), 1) should be used-value-equivalent to -1
|
||||
Pass sign(calc( 0)) should be used-value-equivalent to 0
|
||||
@@ -79,7 +79,7 @@ Pass clamp(-1, 1 / sign(round(nearest, -0, infinity)), 1) should be used-value-e
|
||||
Pass sign(round(nearest, 0, infinity)) should be used-value-equivalent to 0
|
||||
Pass clamp(-1, 1 / sign(round(nearest, 0, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass sign(round(nearest, 1, infinity)) should be used-value-equivalent to 0
|
||||
Fail clamp(-1, 1 / sign(round(nearest, 1, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass clamp(-1, 1 / sign(round(nearest, 1, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass sign(round(up, -1, infinity)) should be used-value-equivalent to 0
|
||||
Pass clamp(-1, 1 / sign(round(up, -1, infinity)), 1) should be used-value-equivalent to -1
|
||||
Pass sign(round(up, -0, infinity)) should be used-value-equivalent to 0
|
||||
@@ -91,7 +91,7 @@ Pass clamp(-1, 1 / sign(round(down, -0, infinity)), 1) should be used-value-equi
|
||||
Pass sign(round(down, 0, infinity)) should be used-value-equivalent to 0
|
||||
Pass clamp(-1, 1 / sign(round(down, 0, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass sign(round(down, 1, infinity)) should be used-value-equivalent to 0
|
||||
Fail clamp(-1, 1 / sign(round(down, 1, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass clamp(-1, 1 / sign(round(down, 1, infinity)), 1) should be used-value-equivalent to 1
|
||||
Pass sign(mod(-1, -1)) should be used-value-equivalent to 0
|
||||
Fail clamp(-1, 1 / sign(mod(-1, -1)), 1) should be used-value-equivalent to -1
|
||||
Pass sign(mod(-1, 1)) should be used-value-equivalent to 0
|
||||
|
||||
Reference in New Issue
Block a user