6 testRunner
.dumpAsText();
7 var testp
= document
.getElementById("p");
8 var testr
= document
.getElementById("r");
9 var testt
= document
.getElementById("t");
10 var indentp
= window
.getComputedStyle(testp
, null).getPropertyValue("text-indent");
11 var indentr
= window
.getComputedStyle(testr
, null).getPropertyValue("text-indent");
12 var indentt
= window
.getComputedStyle(testt
, null).getPropertyValue("text-indent");
13 var resultp
= document
.getElementById("resultp");
14 var resultr
= document
.getElementById("resultr");
15 var resultt
= document
.getElementById("resultt");
16 resultp
.innerHTML
= indentp
;
17 resultr
.innerHTML
= indentr
;
18 resultt
.innerHTML
= indentt
;
22 <body onload=
"test()">
23 <p>This tests that ruby base and text are not affected by CSS text-indent.
</p>
24 <p style=
"text-indent: 50px" id=
"p">This is
<ruby id=
"r">indented by
50 pixel
<rt id=
"t">"text-indent:
50px;
"</rt></ruby>, but the ruby should flow without extra space.
</p>
25 <p>text-indent for
<p
>:
<span id=
"resultp">FAILED!
</span></p>
26 <p>text-indent for
<ruby
>:
<span id=
"resultr">FAILED!
</span></p>
27 <p>text-indent for
<rt
>:
<span id=
"resultt">FAILED!
</span></p>