mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
Tests: Resync imported WPT tests
This commit is contained in:
committed by
Shannon Booth
parent
dda3cb99b7
commit
504a8e6d1d
Notes:
github-actions[bot]
2026-04-04 21:38:15 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/504a8e6d1d3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8776 Reviewed-by: https://github.com/shannonbooth ✅
@@ -37,11 +37,21 @@ test_computed_value("rotate", "400grad y", "y 360deg");
|
||||
test_computed_value("rotate", "0 0.5 0 400grad", "y 360deg");
|
||||
test_computed_value("rotate", "0 1 0 400grad", "y 360deg");
|
||||
|
||||
// ...though if the axis is in the reverse direction, the angle is negated.
|
||||
test_computed_value("rotate", "-0.5 0 0 400grad", "x -360deg");
|
||||
test_computed_value("rotate", "-1 0 0 400grad", "x -360deg");
|
||||
|
||||
test_computed_value("rotate", "0 -0.5 0 400grad", "y -360deg");
|
||||
test_computed_value("rotate", "0 -1 0 400grad", "y -360deg");
|
||||
|
||||
// If the axis is parallel with the z axis the property must serialize as just an <angle>.
|
||||
test_computed_value("rotate", "400grad", "360deg");
|
||||
test_computed_value("rotate", "400grad z", "360deg");
|
||||
test_computed_value("rotate", "0 0 0.5 400grad", "360deg");
|
||||
test_computed_value("rotate", "0 0 1 400grad", "360deg");
|
||||
|
||||
test_computed_value("rotate", "0 0 -0.5 400grad", "-360deg");
|
||||
test_computed_value("rotate", "0 0 -1 400grad", "-360deg");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -35,11 +35,21 @@ test_valid_value("rotate", "400grad y", "y 400grad");
|
||||
test_valid_value("rotate", "0 0.5 0 400grad", "y 400grad");
|
||||
test_valid_value("rotate", "0 1 0 400grad", "y 400grad");
|
||||
|
||||
// ...though if the axis is in the reverse direction, the angle is negated.
|
||||
test_valid_value("rotate", "-0.5 0 0 400grad", "x -400grad");
|
||||
test_valid_value("rotate", "-1 0 0 400grad", "x -400grad");
|
||||
|
||||
test_valid_value("rotate", "0 -0.5 0 400grad", "y -400grad");
|
||||
test_valid_value("rotate", "0 -1 0 400grad", "y -400grad");
|
||||
|
||||
// If the axis is parallel with the z axis the property must serialize as just an <angle>.
|
||||
test_valid_value("rotate", "400grad");
|
||||
test_valid_value("rotate", "400grad z", "400grad");
|
||||
test_valid_value("rotate", "0 0 0.5 400grad", "400grad");
|
||||
test_valid_value("rotate", "0 0 1 400grad", "400grad");
|
||||
|
||||
test_valid_value("rotate", "0 0 -0.5 400grad", "-400grad");
|
||||
test_valid_value("rotate", "0 0 -1 400grad", "-400grad");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -42,6 +42,8 @@ test_invalid_value("transform", "skewX(0, 0)");
|
||||
test_invalid_value("transform", "skewY(0, 0)");
|
||||
|
||||
test_invalid_value("transform", "scaleX(2), scaleY(3)");
|
||||
|
||||
test_invalid_value("transform", "perspective(1000)");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user