Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit ae14a21

Browse files
committed
[css-writing-modes] Fix bug in wm-propagation-001
Text content must be directly inline in the html element to observe its writing mode's used value. If placed in a descendant pseudo, it will inherit from the computed value instead.
1 parent 5804c2f commit ae14a21

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

css/css-writing-modes/wm-propagation-001.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@
1313
writing-mode: vertical-rl;
1414
width: 0; height: 0;
1515
}
16-
html::before {
17-
content: "This text must be vertical.";
18-
/* This is inline content of the root,
19-
and should therefore be vertical,
20-
as the root's used value is vertical */
21-
}
2216
html::after {
2317
content: "This text must be horizontal.";
2418
display: block;
25-
/* This is a block level element,
26-
with it's own writing mode inherited from the root,
27-
horizontal since the root's computed value should be horizontal*/
19+
/* The writing mode inherited from the root must be horizontal
20+
since the root's computed value should be horizontal */
21+
2822
}
2923
</style>
30-
<body></body>
24+
<script>
25+
document.documentElement.append("This text must be vertical");
26+
/* This is direct content of the root,
27+
and should therefore be vertical,
28+
as the root's used value is vertical */
29+
</script>

0 commit comments

Comments
 (0)