mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibWeb: Handle inaccuracies resolving transformation matrix type
Doing trigonometric calculations with floating point numbers can introduce small inaccuracies. This meant that we would sometimes incorrectly generate a 3d rather than 2d matrix for the resolved value of `transform`. Gains us 3 WPT tests.
This commit is contained in:
Notes:
github-actions[bot]
2025-10-23 08:35:56 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1977a976da2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6544 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -0,0 +1,32 @@
|
||||
Harness status: OK
|
||||
|
||||
Found 27 tests
|
||||
|
||||
27 Pass
|
||||
Pass addition of 2 angle units: deg plus deg
|
||||
Pass addition of 2 angle units: deg plus rad
|
||||
Pass addition of 2 angle units: deg plus grad
|
||||
Pass addition of 2 angle units: deg plus turn
|
||||
Pass addition of 2 angle units: rad plus rad
|
||||
Pass addition of 2 angle units: rad plus grad
|
||||
Pass addition of 2 angle units: rad plus turn
|
||||
Pass addition of 2 angle units: grad plus grad
|
||||
Pass addition of 2 angle units: grad plus turn
|
||||
Pass subtraction of angle unit: deg minus deg
|
||||
Pass subtraction of angle unit: deg minus rad
|
||||
Pass subtraction of angle unit: deg minus grad
|
||||
Pass subtraction of angle unit: deg minus turn
|
||||
Pass subtraction of angle unit: rad minus rad
|
||||
Pass subtraction of angle unit: rad minus grad
|
||||
Pass subtraction of angle unit: rad minus turn
|
||||
Pass subtraction of angle unit: grad minus grad
|
||||
Pass subtraction of angle unit: grad minus turn
|
||||
Pass multiplication of angle unit: deg multiplied by int
|
||||
Pass multiplication of angle unit: int multiplied by rad
|
||||
Pass multiplication of angle unit: grad multiplied by int
|
||||
Pass multiplication of angle unit: int multiplied by turn
|
||||
Pass division of angle unit: deg divided by int
|
||||
Pass division of angle unit: rad divided by int
|
||||
Pass division of angle unit: grad divided by int
|
||||
Pass division of angle unit: turn divided by int
|
||||
Pass conversion of angle unit: grad into deg
|
||||
Reference in New Issue
Block a user