summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/parsing
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-writing-modes/parsing')
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/direction-computed.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/direction-invalid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/direction-valid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-computed.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-invalid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-valid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-computed.html20
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-invalid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-valid.html20
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-computed.html23
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-invalid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-valid.html23
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-computed.html20
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-invalid.html19
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-valid.html20
15 files changed, 297 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/direction-computed.html b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-computed.html
new file mode 100644
index 0000000000..6413fb5aed
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-computed.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: getComputedStyle().direction</title>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">
+<meta name="assert" content="direction 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("direction", "ltr");
+test_computed_value("direction", "rtl");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/direction-invalid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-invalid.html
new file mode 100644
index 0000000000..cb282f0b72
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-invalid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing direction with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">
+<meta name="assert" content="direction supports only the grammar 'ltr | rtl'.">
+<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("direction", "auto");
+test_invalid_value("direction", "ltr rtl");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/direction-valid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-valid.html
new file mode 100644
index 0000000000..f8b9fa808b
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/direction-valid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing direction with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-direction">
+<meta name="assert" content="direction supports the full grammar 'ltr | rtl'.">
+<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("direction", "ltr");
+test_valid_value("direction", "rtl");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-computed.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-computed.html
new file mode 100644
index 0000000000..4da8377709
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-computed.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: getComputedStyle().textCombineUpright</title>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-combine-upright">
+<meta name="assert" content="text-combine-upright 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("text-combine-upright", "none");
+test_computed_value("text-combine-upright", "all");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-invalid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-invalid.html
new file mode 100644
index 0000000000..c3401ea7d2
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-invalid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing text-combine-upright with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-combine-upright">
+<meta name="assert" content="text-combine-upright supports only the grammar 'none | 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("text-combine-upright", "auto");
+test_invalid_value("text-combine-upright", "none all");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-valid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-valid.html
new file mode 100644
index 0000000000..dada1f97e2
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-combine-upright-valid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing text-combine-upright with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-combine-upright">
+<meta name="assert" content="text-combine-upright supports the full grammar 'none | 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("text-combine-upright", "none");
+test_valid_value("text-combine-upright", "all");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-computed.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-computed.html
new file mode 100644
index 0000000000..94b78a2e55
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-computed.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: getComputedStyle().textOrientation</title>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">
+<meta name="assert" content="text-orientation 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("text-orientation", "mixed");
+test_computed_value("text-orientation", "upright");
+test_computed_value("text-orientation", "sideways");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-invalid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-invalid.html
new file mode 100644
index 0000000000..ceb9cf78cc
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-invalid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing text-orientation with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">
+<meta name="assert" content="text-orientation supports only the grammar 'mixed | upright | sideways'.">
+<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("text-orientation", "auto");
+test_invalid_value("text-orientation", "mixed upright");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-valid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-valid.html
new file mode 100644
index 0000000000..36f2d36701
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/text-orientation-valid.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing text-orientation with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-text-orientation">
+<meta name="assert" content="text-orientation supports the full grammar 'mixed | upright | sideways'.">
+<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("text-orientation", "mixed");
+test_valid_value("text-orientation", "upright");
+test_valid_value("text-orientation", "sideways");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-computed.html b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-computed.html
new file mode 100644
index 0000000000..5a6164cd86
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-computed.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: getComputedStyle().unicodeBidi</title>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi">
+<meta name="assert" content="unicode-bidi 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("unicode-bidi", "normal");
+test_computed_value("unicode-bidi", "embed");
+test_computed_value("unicode-bidi", "isolate");
+test_computed_value("unicode-bidi", "bidi-override");
+test_computed_value("unicode-bidi", "isolate-override");
+test_computed_value("unicode-bidi", "plaintext");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-invalid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-invalid.html
new file mode 100644
index 0000000000..f1a2b730b4
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-invalid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing unicode-bidi with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi">
+<meta name="assert" content="unicode-bidi supports only the grammar 'normal | embed | isolate | bidi-override | isolate-override | plaintext'.">
+<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("unicode-bidi", "auto");
+test_invalid_value("unicode-bidi", "isolate plaintext");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-valid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-valid.html
new file mode 100644
index 0000000000..38911df2d3
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/unicode-bidi-valid.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing unicode-bidi with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-unicode-bidi">
+<meta name="assert" content="unicode-bidi supports the full grammar 'normal | embed | isolate | bidi-override | isolate-override | plaintext'.">
+<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("unicode-bidi", "normal");
+test_valid_value("unicode-bidi", "embed");
+test_valid_value("unicode-bidi", "isolate");
+test_valid_value("unicode-bidi", "bidi-override");
+test_valid_value("unicode-bidi", "isolate-override");
+test_valid_value("unicode-bidi", "plaintext");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-computed.html b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-computed.html
new file mode 100644
index 0000000000..a7d15efa73
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-computed.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes: getComputedStyle().writingMode</title>
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">
+<meta name="assert" content="writing-mode 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("writing-mode", "horizontal-tb");
+test_computed_value("writing-mode", "vertical-rl");
+test_computed_value("writing-mode", "vertical-lr");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-invalid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-invalid.html
new file mode 100644
index 0000000000..a2010d40d2
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-invalid.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing writing-mode with invalid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">
+<meta name="assert" content="writing-mode supports only the grammar 'horizontal-tb | vertical-rl | vertical-lr'.">
+<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("writing-mode", "auto");
+test_invalid_value("writing-mode", "horizontal-tb vertical-rl");
+</script>
+</body>
+</html>
diff --git a/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-valid.html b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-valid.html
new file mode 100644
index 0000000000..6f79a36a4d
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/parsing/writing-mode-valid.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Writing Modes Level 3: parsing writing-mode with valid values</title>
+<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#propdef-writing-mode">
+<meta name="assert" content="writing-mode supports the full grammar 'horizontal-tb | vertical-rl | vertical-lr'.">
+<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("writing-mode", "horizontal-tb");
+test_valid_value("writing-mode", "vertical-rl");
+test_valid_value("writing-mode", "vertical-lr");
+</script>
+</body>
+</html>