Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-cascade/all-prop-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Cascade: "all" shorthand property excludes "direction" and "unicode-bidi"</title>
<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>