blob: 88a6ba01ad8c506151296a2bba74b30bc6881abb [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<title>Broken Ideographic Font</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
@font-face {
src: url(resources/MakibaFont13.ttf);
font-family: MakibaFace;
}
body {
margin: 50px;
font-size: 20px;
font-family: MakibaFace;
}
.lrblock {
writing-mode: tb-lr; /* IE */
-webkit-writing-mode: vertical-lr;
height: 275px;
margin-bottom: 50px;
padding: 1px;
background-color: #eee;
}
.basic {
width: 275px;
margin: 0;
padding: 1px;
writing-mode: lr-tb; /* IE */
-webkit-writing-mode: horizontal-tb;
}
div.d0 {
background-color: #fee;
}
div.d1 {
background-color: #ffe;
}
p {
margin: 10% 5% 10% 5%;
background-color: #faa;
border-left: 20px solid #f88;
border-right: 20px solid #f88;
line-height: 1em;
padding: 1px;
}
.vert {
writing-mode: tb-rl; /* IE */
-webkit-writing-mode: vertical-rl;
}
</style>
</head>
<body>
<div class="lrblock">
<div class="basic d0"><p>第一段落 paragraph 1</p><p>第二段落 paragraph 2</p></div>
<div class="basic d1 vert"><p>第一段落 paragraph 1</p><p>第二段落 paragraph 2</p></div>
</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
document.body.offsetTop;
var image = new Image();
image.addEventListener("error", function() { if (window.testRunner) testRunner.notifyDone(); });
image.src = "resources/MakibaFont13.ttf";
</script>
</body>
</html>