4 <title>Vertical text using font with vmtx table and units per em
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
6 <style type=
"text/css">
9 /* DroidSansFallback-reduced.ttf was generated based on Android's
10 DroidSansFallback.ttf by removing many glyphs to meet the size
11 requirement of web font face.
12 It contains a vmtx table and units per pm 256 which is different
13 from the default value 1000. */
14 src: url
('resources/DroidSansFallback-reduced.ttf');
19 -webkit-writing-mode: vertical-rl
;
23 if (window
.testRunner
) {
24 testRunner
.waitUntilDone();
25 testRunner
.dumpAsText();
29 var height
= document
.getElementById("test").offsetHeight
;
30 // If the units per em in the font is not respected, the height of the
31 // test div will be much smaller than 25*7.
32 document
.getElementById("result").innerText
= height
>= 25*7 ? "PASS" : "FAIL";
33 if (window
.testRunner
)
34 testRunner
.notifyDone();
37 window
.onload = function() {
38 document
.body
.offsetTop
;
39 setTimeout(test
, 100);
44 The characters in the vertical div should not overlap.
45 <div id=
"result"></div>
47 一丁丂七丄丅丆