Update web-platform-tests to revision e9f2d000237d43f74136cfd40e5a3454f5b54b70

This commit is contained in:
WPT Sync Bot 2019-09-17 10:24:07 +00:00
parent 8bc8981ae5
commit 57465056e7
127 changed files with 18346 additions and 155 deletions

View file

@ -45,6 +45,13 @@ test_invalid_value("clip-path", "ellipse(-50px 60px at 70% 80%)");
test_invalid_value("clip-path", "polygon(1%)");
test_invalid_value("clip-path", "unknown-box");
test_invalid_value("clip-path", 'path(abc, "m 20 0 h -100 z")');
test_invalid_value("clip-path", 'path(nonzero)');
test_invalid_value("clip-path", 'path(evenodd, "")');
test_invalid_value("clip-path", 'path("m 20 0 h -100", nonzero)');
</script>
</body>
</html>

View file

@ -42,6 +42,14 @@ test_valid_value("clip-path", "polygon(1% 2%)");
test_valid_value("clip-path", "polygon(nonzero, 1px 2px, 3em 4em)", "polygon(1px 2px, 3em 4em)");
test_valid_value("clip-path", "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)");
// New supported shape in [css-shapes-2]
// https://drafts.csswg.org/css-shapes-2/#supported-basic-shapes
test_valid_value("clip-path", 'path("m 20 0 h -100")');
test_valid_value("clip-path", 'path(evenodd, "M 20 20 h 60 v 60 h -60 Z M 30 30 h 40 v 40 h -40 Z")');
test_valid_value("clip-path",
'path(nonzero, "M20,20h60 v60 h-60z M30,30 h40 v40 h-40z")',
'path("M 20 20 h 60 v 60 h -60 Z M 30 30 h 40 v 40 h -40 Z")');
// <geometry-box>
test_valid_value("clip-path", "border-box");
test_valid_value("clip-path", "padding-box");
@ -57,7 +65,7 @@ test_valid_value("clip-path", "circle(7% at 8% 9%) border-box");
// <geometry-box> basic-shape>
test_valid_value("clip-path", "border-box circle(7% at 8% 9%)");
// <clip-source>
// <clip-source>
test_valid_value("clip-path", "url(https://example.com/)", ["url(https://example.com/)", "url(\"https://example.com/\")"]);
test_valid_value("clip-path", "url(\"https://example.com/\")", ["url(https://example.com/)", "url(\"https://example.com/\")"]);
</script>