summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/writing-mode/text-orientation-basic.html
blob: 9853439730132a8585923b22e41cf38b72ecaf37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<body style="overflow:hidden;">
<p>This test exercises the vertical text rendering feature of Blink's shaping code, and checks for errors in font code
    path selection: Vertical text should always go through the shaper. It exercises glyph orientation difficulties with
    two different fonts.
</p>
<div style="-webkit-writing-mode:vertical-lr; height:600px; font-size:36px">
<div style="display:inline-block; border:1px solid green">
<span style="font-family:'Times New Roman'">Hello world</span><br>
<span style="font-family:'Times New Roman'; -webkit-text-orientation:upright">Hello world</span><br>
<span style="font-family:'Hiragino Kaku Gothic Pro'">Hello world</span><br>
<span style="font-family:'Hiragino Kaku Gothic Pro'; -webkit-text-orientation:upright">Hello world</span><br>
</div>

<div style="display:inline-block; border:1px solid green; text-rendering:optimizeLegibility">
<span style="font-family:'Times New Roman'">Hello world</span><br>
<span style="font-family:'Times New Roman'; -webkit-text-orientation:upright">Hello world</span><br>
<span style="font-family:'Hiragino Kaku Gothic Pro'">Hello world</span><br>
<span style="font-family:'Hiragino Kaku Gothic Pro'; -webkit-text-orientation:upright">Hello world</span><br>
</div>
</div>