Bug 1528853 [wpt PR 15313] - [css-ui] Parsing of user-select, a=testonly
authorEric Willigers <ewilligers@users.noreply.github.com>
Wed, 06 Mar 2019 10:33:43 +0000
changeset 522493 3c153c21688ec333f8263789888f221dde01da66
parent 522492 13b19dc8a8f2b9203908b1af9bf7d95ed3bebdfb
child 522494 e71578edf074b5bccd5a97ef6022ace5d2afd315
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1528853, 15313
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 1528853 [wpt PR 15313] - [css-ui] Parsing of user-select, a=testonly Automatic update from web-platform-tests [css-ui] Parsing of user-select (#15313) https://drafts.csswg.org/css-ui-4/#content-selection user-select supports keywords: auto | text | none | contain | all -- wpt-commits: 46e8fe1d71743dc708d6bb7a75ce662be9a928fa wpt-pr: 15313
testing/web-platform/tests/css/css-ui/parsing/user-select-computed.html
testing/web-platform/tests/css/css-ui/parsing/user-select-invalid.html
testing/web-platform/tests/css/css-ui/parsing/user-select-valid.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/parsing/user-select-computed.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS UI Level 4: getComputedValue().userSelect</title>
+<link rel="help" href="https://drafts.csswg.org/css-ui-4/#content-selection">
+<meta name="assert" content="user-select computed value is as specified.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value("user-select", "auto");
+test_computed_value("user-select", "text");
+test_computed_value("user-select", "none");
+test_computed_value("user-select", "contain");
+test_computed_value("user-select", "all");
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/parsing/user-select-invalid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS UI Level 4: parsing user-select with invalid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-ui-4/#content-selection">
+<meta name="assert" content="user-select supports only the grammar 'auto | text | none | contain | all'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value("user-select", "visible");
+test_invalid_value("user-select", "text contain");
+</script>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/parsing/user-select-valid.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS UI Level 4: parsing user-select with valid values</title>
+<link rel="help" href="https://drafts.csswg.org/css-ui-4/#content-selection">
+<meta name="assert" content="user-select supports the full grammar 'auto | text | none | contain | all'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value("user-select", "auto");
+test_valid_value("user-select", "text");
+test_valid_value("user-select", "none");
+test_valid_value("user-select", "contain");
+test_valid_value("user-select", "all");
+</script>
+</body>
+</html>