LibWeb/CSS: Replace resolve_angle_deprecated() with resolve_angle()

Gets us some WPT passes. 🎉
This commit is contained in:
Sam Atkins 2025-09-24 12:51:53 +01:00 committed by Tim Ledbetter
parent 525b5bf623
commit 375e32c523
Notes: github-actions[bot] 2025-09-24 15:37:14 +00:00
5 changed files with 11 additions and 20 deletions

View file

@ -2,8 +2,8 @@ Harness status: OK
Found 45 tests
33 Pass
12 Fail
37 Pass
8 Fail
Pass Property width value 'calc(NaN * 1px)'
Pass Property width value 'calc(NaN * 1%)'
Pass Property width value 'calc(infinity * 1px)'
@ -39,13 +39,13 @@ Pass Property transition-delay value 'calc(max(10000s, 0s) + min(-infinity * 1s,
Pass Property transition-delay value 'calc(min(-infinity * 1s, 10s))'
Fail Property rotate(calc(infinity * 1deg)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(-infinity * 1deg)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(NaN * 1deg)) value expected same with rotate(0deg) in +/-0.0001
Pass Property rotate(calc(NaN * 1deg)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(infinity * 1turn)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(-infinity * 1turn)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(NaN * 1turn)) value expected same with rotate(0deg) in +/-0.0001
Pass Property rotate(calc(NaN * 1turn)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(infinity * 1rad)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(-infinity * 1rad)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(NaN * 1rad)) value expected same with rotate(0deg) in +/-0.0001
Pass Property rotate(calc(NaN * 1rad)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(infinity * 1grad)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(-infinity * 1grad)) value expected same with rotate(0deg) in +/-0.0001
Fail Property rotate(calc(NaN * 1grad)) value expected same with rotate(0deg) in +/-0.0001
Pass Property rotate(calc(NaN * 1grad)) value expected same with rotate(0deg) in +/-0.0001

View file

@ -2,8 +2,8 @@ Harness status: OK
Found 138 tests
134 Pass
4 Fail
136 Pass
2 Fail
Pass new DOMMatrix()
Pass new DOMMatrix(undefined)
Pass new DOMMatrix(new DOMMatrix())
@ -53,7 +53,7 @@ Pass new DOMMatrix("rotate(5)")
Pass new DOMMatrix("rotate(5, 5, 5)")
Pass new DOMMatrix("rotate(5, 5px, 5px)")
Pass new DOMMatrix("rotate(5deg, 5px, 5px)")
Fail new DOMMatrix("rotate(calc(5deg * sign(1em - 10px)))")
Pass new DOMMatrix("rotate(calc(5deg * sign(1em - 10px)))")
Pass new DOMMatrix("rotate(calc(5deg * sibling-index()))")
Pass new DOMMatrix(" ")
Pass new DOMMatrix("/**/")
@ -122,7 +122,7 @@ Pass new DOMMatrixReadOnly("rotate(5)")
Pass new DOMMatrixReadOnly("rotate(5, 5, 5)")
Pass new DOMMatrixReadOnly("rotate(5, 5px, 5px)")
Pass new DOMMatrixReadOnly("rotate(5deg, 5px, 5px)")
Fail new DOMMatrixReadOnly("rotate(calc(5deg * sign(1em - 10px)))")
Pass new DOMMatrixReadOnly("rotate(calc(5deg * sign(1em - 10px)))")
Pass new DOMMatrixReadOnly("rotate(calc(5deg * sibling-index()))")
Pass new DOMMatrixReadOnly(" ")
Pass new DOMMatrixReadOnly("/**/")