Bug 1502705 [wpt PR 13750] - [filter-effects] filter arguments optional, a=testonly

Automatic update from web-platform-tests[filter-effects] filter arguments optional (#13750)

grayscale() etc may be used without arguments.

https://github.com/w3c/fxtf-drafts/issues/1
--

wpt-commits: 8d90bc4a082eb30f8843e38068f29a9e81bf2fca
wpt-pr: 13750
This commit is contained in:
Eric Willigers 2018-11-09 16:53:49 +00:00 коммит произвёл moz-wptsync-bot
Родитель 66545c789c
Коммит 0aad0feef0
2 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -19,15 +19,12 @@ test_invalid_value("filter", "none hue-rotate(0deg)");
test_invalid_value("filter", "blur(10)");
test_invalid_value("filter", "blur(-100px)");
test_invalid_value("filter", "blur()"); // crbug.com/618960 Blink/WebKit accept no arguments for all but drop-shadow.
test_invalid_value("filter", "brightness(-20)"); // crbug.com/776208 Blink/WebKit accept negative brightness.
test_invalid_value("filter", "brightness(30px)");
test_invalid_value("filter", "brightness()");
test_invalid_value("filter", "contrast(-20)");
test_invalid_value("filter", "contrast(30px)");
test_invalid_value("filter", "contrast()");
test_invalid_value("filter", "drop-shadow(10 20)");
test_invalid_value("filter", "drop-shadow(10% 20%)");
@ -38,26 +35,20 @@ test_invalid_value("filter", "drop-shadow()");
test_invalid_value("filter", "grayscale(-20)");
test_invalid_value("filter", "grayscale(30px)");
test_invalid_value("filter", "grayscale()");
test_invalid_value("filter", "hue-rotate(90)");
test_invalid_value("filter", "hue-rotate()");
test_invalid_value("filter", "invert(-20)");
test_invalid_value("filter", "invert(30px)");
test_invalid_value("filter", "invert()");
test_invalid_value("filter", "opacity(-20)");
test_invalid_value("filter", "opacity(30px)");
test_invalid_value("filter", "opacity()");
test_invalid_value("filter", "saturate(-20)");
test_invalid_value("filter", "saturate(30px)");
test_invalid_value("filter", "saturate()");
test_invalid_value("filter", "sepia(-20)");
test_invalid_value("filter", "sepia(30px)");
test_invalid_value("filter", "sepia()");
</script>
</body>
</html>

Просмотреть файл

@ -16,12 +16,15 @@ test_valid_value("filter", "none");
test_valid_value("filter", "blur(100px)");
test_valid_value("filter", "blur(0)", "blur(0px)");
test_valid_value("filter", "blur()");
test_valid_value("filter", "brightness(0)");
test_valid_value("filter", "brightness(300%)");
test_valid_value("filter", "brightness()");
test_valid_value("filter", "contrast(0)");
test_valid_value("filter", "contrast(300%)");
test_valid_value("filter", "contrast()");
test_valid_value("filter", "drop-shadow(1px 2px)");
test_valid_value("filter", "drop-shadow(1px 2px 3px)");
@ -33,21 +36,27 @@ test_valid_value("filter", "drop-shadow(rgba(4, 5, 6, 0.75) 1px 2px 3px)");
test_valid_value("filter", "grayscale(0)");
test_valid_value("filter", "grayscale(300%)", "grayscale(100%)");
test_valid_value("filter", "grayscale()");
test_valid_value("filter", "hue-rotate(90deg)");
test_valid_value("filter", "hue-rotate(0)", "hue-rotate(0deg)"); // https://github.com/w3c/fxtf-drafts/issues/228
test_valid_value("filter", "hue-rotate()");
test_valid_value("filter", "invert(0)");
test_valid_value("filter", "invert(300%)", "invert(100%)");
test_valid_value("filter", "invert()");
test_valid_value("filter", "opacity(0)");
test_valid_value("filter", "opacity(300%)", "opacity(100%)");
test_valid_value("filter", "opacity()");
test_valid_value("filter", "saturate(0)");
test_valid_value("filter", "saturate(300%)");
test_valid_value("filter", "saturate()");
test_valid_value("filter", "sepia(0)");
test_valid_value("filter", "sepia(300%)", "sepia(100%)");
test_valid_value("filter", "sepia()");
// Edge serializes url(...) without quotes. Blink/WebKit and Firefox use quotes.
test_valid_value("filter", "url(picture.svg#f)", ['url("picture.svg#f")', 'url(picture.svg#f)']);