summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-cascade/all-prop-001.html
blob: 9c07dfe1b8d6edc692826ad1435a7e467b8d9ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>