5 ruby { border: solid
5px cyan; }
9 Ruby text should be at the center of ruby base.
11 <ruby>aaaaa
<rt>b
</rt></ruby><br>
15 <ruby>a
<rt>bbbb
</rt></ruby><br>
18 <div id=
"test3" style=
"-webkit-writing-mode: vertical-rl;">
19 <ruby>aaaaa
<rt>b
</rt></ruby><br>
22 <div id=
"test4" style=
"-webkit-writing-mode: vertical-rl;">
23 <ruby>a
<rt>bbbb
</rt></ruby><br>
26 setTimeout(function () {
27 var verticalElement
= document
.getElementById("test1");
28 verticalElement
.setAttribute("style", "-webkit-writing-mode: vertical-rl;");
29 verticalElement
= document
.getElementById("test2");
30 verticalElement
.setAttribute("style", "-webkit-writing-mode: vertical-rl;");
31 var horizontalElement
= document
.getElementById("test3");
32 horizontalElement
.setAttribute("style", "");
33 horizontalElement
= document
.getElementById("test4");
34 horizontalElement
.setAttribute("style", "");
35 if (window
.testRunner
) {
36 testRunner
.notifyDone();
39 if (window
.testRunner
) {
40 testRunner
.waitUntilDone();