summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-cascade/all-prop-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-cascade/all-prop-001.html')
-rw-r--r--testing/web-platform/tests/css/css-cascade/all-prop-001.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-cascade/all-prop-001.html b/testing/web-platform/tests/css/css-cascade/all-prop-001.html
new file mode 100644
index 0000000000..9c07dfe1b8
--- /dev/null
+++ b/testing/web-platform/tests/css/css-cascade/all-prop-001.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "all" shorthand property excludes "direction" and "unicode-bidi"</title>
+ <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
+ <link rel="author" title="Chris Rebert" href="http://chrisrebert.com">
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#all-shorthand">
+ <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#all-shorthand">
+ <link rel="match" href="all-prop-001-ref.html">
+ <meta name="assert" content="Test passes if 'all' resets properties other than 'direction' and 'unicode-bidi'.">
+ <style>
+.test {
+ /* these must not be overridden */
+ direction: rtl;
+ unicode-bidi: bidi-override;
+}
+
+.test, bdo {
+ /* all of these must be overridden */
+ border: solid red;
+ background: red;
+ color: red;
+ text-decoration: line-through;
+ font: bold italic small-caps 20px monospace;
+ outline: solid red;
+ float: left;
+ letter-spacing: 1em;
+ display: list-item;
+ text-align: center;
+ width: 0.5em;
+ margin: 10em;
+ overflow: scroll;
+}
+
+.test, bdo {
+ all: initial;
+ /* if incorrectly implemented, this causes direction: initial; unicode-bidi: initial;
+ which is the same as direction:ltr; unicode-bidi: normal */
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if the digits are <strong>in order</strong> and there is <strong>no red</strong>.</p>
+
+ <div class="test"><bdo dir=rtl>987 <span>654</span></bdo> 321</div>
+</body>
+</html>