Bug 1504391 [wpt PR 13873] - [css-overscroll-behavior] Parsing, serialization, a=testonly
authorEric Willigers <ewilligers@users.noreply.github.com>
Mon, 18 Feb 2019 19:26:21 +0000
changeset 519201 80797a975d97d6b5af7d2d2bd71a0637d04fae23
parent 519200 b3874f50c9fb17379335c08ce79eaf35d6a4a3ff
child 519202 b23139608c8ae59a00c34a85cfd9ba4b5218f62b
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1504391, 13873
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1504391 [wpt PR 13873] - [css-overscroll-behavior] Parsing, serialization, a=testonly Automatic update from web-platform-tests [css-overscroll-behavior] Parsing, serialization (#13873) Spec: https://drafts.csswg.org/css-overscroll-behavior/#property-index -- wpt-commits: 7d971ce190c8ab60ddb4e48fa47e05e980aa0f5d wpt-pr: 13873
testing/web-platform/tests/css/css-overscroll-behavior/parsing/overscroll-behavior-invalid.html
testing/web-platform/tests/css/css-overscroll-behavior/parsing/overscroll-behavior-valid.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-overscroll-behavior/parsing/overscroll-behavior-invalid.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Overscroll Behavior: parsing overscroll-behavior with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-overscroll-behavior/#propdef-overscroll-behavior">
+<meta name="assert" content="overscroll-behavior supports only the grammar '[ contain | none | auto ]{1,2}'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+'use strict';
+test_invalid_value("overscroll-behavior", "normal");
+test_invalid_value("overscroll-behavior", "0");
+test_invalid_value("overscroll-behavior", "contain contain contain");
+
+
+for (let property of ["overscroll-behavior-x", "overscroll-behavior-y"]) {
+  test_invalid_value(property, "normal");
+  test_invalid_value(property, "0");
+  test_invalid_value(property, "contain contain");
+}
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-overscroll-behavior/parsing/overscroll-behavior-valid.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Overscroll Behavior: parsing overscroll-behavior with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-overscroll-behavior/#propdef-overscroll-behavior">
+<meta name="assert" content="overscroll-behavior supports the full grammar '[ contain | none | auto ]{1,2}'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+'use strict';
+test_valid_value("overscroll-behavior", "contain");
+test_valid_value("overscroll-behavior", "none");
+test_valid_value("overscroll-behavior", "auto");
+
+test_valid_value("overscroll-behavior", "contain none");
+test_valid_value("overscroll-behavior", "none auto");
+test_valid_value("overscroll-behavior", "auto contain");
+
+test_valid_value("overscroll-behavior", "contain contain", "contain");
+test_valid_value("overscroll-behavior", "none none", "none");
+test_valid_value("overscroll-behavior", "auto auto", "auto");
+
+
+for (let property of ["overscroll-behavior-x", "overscroll-behavior-y"]) {
+  test_valid_value(property, "contain");
+  test_valid_value(property, "none");
+  test_valid_value(property, "auto");
+}
+</script>
+</body>
+</html>