mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 7a6f5673ff5d146ca5c09c6a1b42b7706cfee328
This commit is contained in:
parent
e2fca1b228
commit
4787b28da3
261 changed files with 8195 additions and 4689 deletions
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 1: parsing transform-box with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box-property">
|
||||
<meta name="assert" content="transform-box supports only the grammar 'content-box | border-box | fill-box | stroke-box | view-box'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("transform-box", "margin-box");
|
||||
test_invalid_value("transform-box", "padding-box");
|
||||
test_invalid_value("transform-box", "fill-box view-box");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 1: parsing transform-box with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box-property">
|
||||
<meta name="assert" content="transform-box supports the full grammar 'content-box | border-box | fill-box | stroke-box | view-box'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("transform-box", "content-box");
|
||||
test_valid_value("transform-box", "border-box");
|
||||
test_valid_value("transform-box", "fill-box");
|
||||
test_valid_value("transform-box", "stroke-box");
|
||||
test_valid_value("transform-box", "view-box");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 2: parsing transform with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#transform-property">
|
||||
<meta name="assert" content="transform supports only the grammar 'none | <transform-list>'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("transform", "none scale(2)");
|
||||
test_invalid_value("transform", "translateX(3%) none");
|
||||
|
||||
test_invalid_value("transform", "matrix(1, 2)");
|
||||
|
||||
test_invalid_value("transform", "translate(1px, 2px, 3px)");
|
||||
|
||||
test_invalid_value("transform", "translateX(-4px, 5px)");
|
||||
|
||||
test_invalid_value("transform", "translateY(4%, 5%)");
|
||||
|
||||
test_invalid_value("transform", "scale(6, 7, 8)");
|
||||
|
||||
test_invalid_value("transform", "scaleX(1, 2)");
|
||||
|
||||
test_invalid_value("transform", "scaleY(3, 4)");
|
||||
|
||||
test_invalid_value("transform", "rotate(0, 0)");
|
||||
test_invalid_value("transform", "rotate(0, 0, 0)");
|
||||
test_invalid_value("transform", "rotate(0, 0, 0, 0)");
|
||||
|
||||
test_invalid_value("transform", "skew(0, 0, 0)");
|
||||
|
||||
test_invalid_value("transform", "skewX(0, 0)");
|
||||
|
||||
test_invalid_value("transform", "skewY(0, 0)");
|
||||
|
||||
test_invalid_value("transform", "scaleX(2), scaleY(3)");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 1: parsing transform-origin with invalid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-origin-property">
|
||||
<meta name="assert" content="transform-origin supports only the grammar from spec.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_invalid_value("transform-origin", "1px 2px 3%");
|
||||
test_invalid_value("transform-origin", "1px 2px left");
|
||||
test_invalid_value("transform-origin", "1px 2px 3px 4px");
|
||||
test_invalid_value("transform-origin", "1px left");
|
||||
test_invalid_value("transform-origin", "top 1px"); // Blink fails.
|
||||
test_invalid_value("transform-origin", "right left");
|
||||
test_invalid_value("transform-origin", "top bottom");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 1: parsing transform-origin with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-origin-property">
|
||||
<meta name="assert" content="transform-origin supports the full grammar from spec.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("transform-origin", "left", ["left center 0px", "left 50% 0px", "left center"]);
|
||||
test_valid_value("transform-origin", "center", ["center center 0px", "center 50% 0px", "center center"]);
|
||||
test_valid_value("transform-origin", "right", ["right center 0px", "right 50% 0px", "right center"]);
|
||||
test_valid_value("transform-origin", "top", ["center top 0px", "50% top 0px", "center top"]);
|
||||
test_valid_value("transform-origin", "bottom", ["center bottom 0px", "50% bottom 0px", "center bottom"]);
|
||||
test_valid_value("transform-origin", "-1px", ["-1px center 0px", "-1px 50% 0px", "-1px center"]);
|
||||
test_valid_value("transform-origin", "calc(2em + 3ex)", ["calc(2em + 3ex) center 0px", "calc(2em + 3ex) 50% 0px", "calc(2em + 3ex) center"]);
|
||||
test_valid_value("transform-origin", "-4%", ["-4% center 0px", "-4% 50% 0px", "-4% center"]);
|
||||
|
||||
test_valid_value("transform-origin", "left center", ["left center 0px", "left center"]);
|
||||
test_valid_value("transform-origin", "center top", ["center top 0px", "center top"]);
|
||||
test_valid_value("transform-origin", "right -4%", ["right -4% 0px", "right -4%"]);
|
||||
test_valid_value("transform-origin", "-1px bottom 5px");
|
||||
|
||||
test_valid_value("transform-origin", "center left 6px", "left center 6px");
|
||||
test_valid_value("transform-origin", "top center", ["center top 0px", "center top"]);
|
||||
test_valid_value("transform-origin", "bottom right 7px", "right bottom 7px");
|
||||
test_valid_value("transform-origin", "-1px -2px -3px");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Transform Module Level 2: parsing transform with valid values</title>
|
||||
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#transform-property">
|
||||
<meta name="assert" content="transform supports the full grammar 'none | <transform-list>'.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/parsing-testcommon.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
test_valid_value("transform", "none");
|
||||
|
||||
test_valid_value("transform", "matrix(1, 0, 0, 1, 0, 0)");
|
||||
test_valid_value("transform", "matrix(1, 2, 3, 4, 5, 6)");
|
||||
test_valid_value("transform", "matrix(-0.1, -0.2, -0.3, -0.4, -0.5, -0.6)");
|
||||
|
||||
test_valid_value("transform", "translate(1px)");
|
||||
test_valid_value("transform", "translate(2%, -3%)");
|
||||
|
||||
test_valid_value("transform", "translateX(-4px)");
|
||||
|
||||
test_valid_value("transform", "translateY(5%)");
|
||||
|
||||
test_valid_value("transform", "scale(2)");
|
||||
test_valid_value("transform", "scale(3, 4)");
|
||||
test_valid_value("transform", "scale(-5, -6)");
|
||||
|
||||
test_valid_value("transform", "scaleX(7)");
|
||||
|
||||
test_valid_value("transform", "scaleY(-8)");
|
||||
|
||||
test_valid_value("transform", "rotate(0)", "rotate(0deg)");
|
||||
test_valid_value("transform", "rotate(90deg)");
|
||||
|
||||
test_valid_value("transform", "skew(0)", "skew(0deg)");
|
||||
test_valid_value("transform", "skew(90deg)");
|
||||
test_valid_value("transform", "skew(0, -90deg)", "skew(0deg, -90deg)");
|
||||
test_valid_value("transform", "skew(90deg, 0)", "skew(90deg, 0deg)");
|
||||
|
||||
test_valid_value("transform", "skewX(0)", "skewX(0deg)");
|
||||
test_valid_value("transform", "skewX(90deg)");
|
||||
|
||||
test_valid_value("transform", "skewY(0)", "skewY(0deg)");
|
||||
test_valid_value("transform", "skewY(-90deg)");
|
||||
|
||||
test_valid_value("transform", "translate(1px, 2%) scale(3, 4) rotate(-90deg)");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue