4 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8">
5 <title>Vertical text metrics test
</title>
7 function print(message
)
9 var paragraph
= document
.createElement("li");
10 paragraph
.appendChild(document
.createTextNode(message
));
11 document
.getElementById("console").appendChild(paragraph
);
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
18 var pElems
= document
.getElementsByTagName("span");
19 for ( i
= 0 ; i
< pElems
.length
; ++i
)
22 print("width=" + elem
.offsetWidth
);
28 font-family:
"HiraMinPro-W3";
32 -webkit-writing-mode: horizontal-tb;
35 -webkit-writing-mode: horizontal-bt;
38 -webkit-writing-mode: vertical-rl;
41 -webkit-writing-mode: vertical-lr;
43 #horizontal_TB_complex {
44 -webkit-writing-mode: horizontal-tb;
45 text-rendering: optimizelegibility;
47 #horizontal_BT_complex {
48 -webkit-writing-mode: horizontal-bt;
49 text-rendering: optimizelegibility;
51 #vertical_RL_complex {
52 -webkit-writing-mode: vertical-rl;
53 text-rendering: optimizelegibility;
55 #vertical_LR_complex {
56 -webkit-writing-mode: vertical-lr;
57 text-rendering: optimizelegibility;
61 <body onload=
"test()">
62 <p>Simple text path
</p>
63 <span id=
"horizontal_TB">string「あ、変っ!」。
</span><br>
64 <span id=
"horizontal_BT">string「あ、変っ!」。
</span><br>
65 <span id=
"vertical_RL">string「あ、変っ!」。
</span><br>
66 <span id=
"vertical_LR">string「あ、変っ!」。
</span><br>
69 <p>Complex text path
</p>
70 <span id=
"horizontal_TB_complex">string「あ、変っ!」。
</span><br>
71 <span id=
"horizontal_BT_complex">string「あ、変っ!」。
</span><br>
72 <span id=
"vertical_RL_complex">string「あ、変っ!」。
</span><br>
73 <span id=
"vertical_LR_complex">string「あ、変っ!」。
</span><br>
76 <p><ol id=console
></ol></p>