Tests: Resync imported WPT tests

This commit is contained in:
Tim Ledbetter
2026-04-04 17:18:58 +01:00
committed by Shannon Booth
parent dda3cb99b7
commit 504a8e6d1d
Notes: github-actions[bot] 2026-04-04 21:38:15 +00:00
306 changed files with 6274 additions and 2460 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>