Update web-platform-tests to revision b'9ce4a6482a088da3d74f895d8ad15c5ce0c25d28'

This commit is contained in:
WPT Sync Bot 2022-12-17 01:16:22 +00:00
parent dca3b2f0c1
commit 02d490892d
162 changed files with 3675 additions and 951 deletions

View file

@ -11,25 +11,25 @@
</head>
<body>
<script>
test_valid_value("mask-position", "10%", "10% center");
test_valid_value("mask-position", "10%");
test_valid_value("mask-position", "right 30% top 60px");
test_valid_value("mask-position", "-20% -30px");
test_valid_value("mask-position", "30px center");
test_valid_value("mask-position", "30px center", "30px");
test_valid_value("mask-position", "40px top");
test_valid_value("mask-position", "bottom 10% right 20%", "right 20% bottom 10%");
test_valid_value("mask-position", "bottom right", "right bottom");
test_valid_value("mask-position", "center 50px");
test_valid_value("mask-position", "center bottom");
test_valid_value("mask-position", "center left", "left center");
test_valid_value("mask-position", "left", "left center");
test_valid_value("mask-position", "center bottom", "bottom");
test_valid_value("mask-position", "center left", "left");
test_valid_value("mask-position", "left");
test_valid_value("mask-position", "left bottom");
test_valid_value("mask-position", "right 40%");
test_valid_value("mask-position", "top", "center top");
test_valid_value("mask-position", "top center", "center top");
test_valid_value("mask-position", "center", "center center");
test_valid_value("mask-position", "top");
test_valid_value("mask-position", "top center", "top");
test_valid_value("mask-position", "center", "center");
test_valid_value("mask-position", "bottom left, right 20%", "left bottom, right 20%");
test_valid_value("mask-position", "top, center, left", "center top, center center, left center");
test_valid_value("mask-position", "top, center, left");
</script>
</body>
</html>

View file

@ -11,52 +11,55 @@
</head>
<body>
<script>
// <mask-layer> = <mask-reference> <masking-mode>? || <position> [ / <bg-size> ]? ||
// <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator>
// <mask-layer> = <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> ||
// <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>
// <mask-reference> <masking-mode>?
// <mask-reference> = none | <image> | <mask-source>
// <masking-mode> = alpha | luminance | auto
test_valid_value('mask', 'none');
test_valid_value('mask', 'none alpha');
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue)');
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) luminance');
test_valid_value('mask', 'url("https://{{host}}/")');
test_valid_value('mask', 'url("https://{{host}}/") alpha');
// <position> [ / <bg-size> ]?
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) 1px 2px');
test_valid_value('mask', 'url("https://{{host}}/") 1px 2px / contain');
// <repeat-style> = repeat-x | repeat-y | [repeat | space | round | no-repeat]{1,2}
test_valid_value('mask', 'none repeat-y');
test_valid_value('mask', 'repeat-y');
// <geometry-box> = <shape-box> | fill-box | stroke-box | view-box
// <shape-box> = <box> | margin-box
// <box> = border-box | padding-box | content-box
test_valid_value('mask', 'none border-box', 'none');
test_valid_value('mask', 'border-box', 'none');
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) padding-box');
test_valid_value('mask', 'none content-box');
test_valid_value('mask', 'none margin-box');
test_valid_value('mask', 'content-box');
test_valid_value('mask', 'margin-box');
test_valid_value('mask', 'url("https://{{host}}/") fill-box');
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) stroke-box');
test_valid_value('mask', 'none view-box');
test_valid_value('mask', 'view-box');
// [ <geometry-box> | no-clip ]
test_valid_value('mask', 'none no-clip', 'none border-box no-clip');
test_valid_value('mask', 'no-clip');
// <compositing-operator> = add | subtract | intersect | exclude
test_valid_value('mask', 'url("https://{{host}}/") add', 'url("https://{{host}}/")');
test_valid_value('mask', 'none subtract');
test_valid_value('mask', 'subtract');
test_valid_value('mask', 'url("https://{{host}}/") intersect');
test_valid_value('mask', 'linear-gradient(to left bottom, red, blue) exclude');
// <masking-mode> = alpha | luminance | auto
test_valid_value('mask', 'alpha');
test_valid_value('mask', 'url("https://{{host}}/") alpha');
// <mask-layer> = <mask-reference> <masking-mode>? || <position> [ / <bg-size> ]? ||
// <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator>
// <mask-layer> = <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> ||
// <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>
test_valid_value('mask', 'intersect no-clip space round 1px 2px / contain stroke-box linear-gradient(to left bottom, red, blue) luminance', 'linear-gradient(to left bottom, red, blue) luminance 1px 2px / contain space round stroke-box no-clip intersect');
test_valid_value('mask', 'intersect no-clip space round 1px 2px / contain view-box, stroke-box linear-gradient(to left bottom, red, blue) luminance', '1px 2px / contain space round view-box no-clip intersect, linear-gradient(to left bottom, red, blue) luminance stroke-box');
// Earlier versions of the mask shorthand always required a <mask-reference>.
// To avoid unnecessarily losing test coverage, keep one of the test cases from back then.
test_valid_value('mask', 'none alpha', 'alpha');
test_valid_value('mask', 'intersect no-clip space round 1px 2px / contain view-box, stroke-box linear-gradient(to left bottom, red, blue) luminance', 'none 1px 2px / contain space round view-box no-clip intersect, linear-gradient(to left bottom, red, blue) luminance stroke-box');
</script>
</body>
</html>