text-orientation-sideways-001.xht (1858B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Writing Modes Test: text-orientation - sideways in vertical-rl writing mode</title> 5 <link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" /> 6 <link rel="help" title="5.1. Orienting Text" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" /> 7 <meta name="flags" content="image" /> 8 <meta name="assert" content="This test checks that general horizontal text (include Japanese,etc) rotates 90 degrees clockwise, and it is verified whether the characters are aligned in the vertical direction." /> 9 <style type="text/css"><![CDATA[ 10 @font-face 11 { 12 font-family: "DejaVuSerifBook"; 13 src: url("support/DejaVuSerif-webfont.woff") format("woff"); 14 /* Filesize: 18096 bytes (17.7 KBytes) */ 15 } 16 17 div { 18 border: 1px solid gray; 19 float: left; 20 color: blue; 21 font-family: "DejaVuSerifBook"; 22 font-size: 30px; 23 line-height: 1.4; /* equivalent to 42px: 24 so that top-half-leading outside content is 6px 25 and bottom-half-leading outside content is 6px */ 26 margin: 10px; 27 } 28 29 div#vertical 30 { 31 writing-mode: vertical-rl; 32 text-orientation: sideways; 33 } 34 35 img {vertical-align: top;} 36 37 ]]></style> 38 </head> 39 <body> 40 41 <p>Test passes if both "Text sample" rectangles 42 have the <strong>same order</strong>, the <strong>same orientation</strong> and the <strong>same layout</strong>: 43 "Text sample" should be displayed rotates 90 degrees clockwise.</p> 44 45 <div id="vertical">Text sample</div> 46 47 <div><img src="./support/text-orientation-sideways-right-001.png" width="42" height="184" alt="Image download support must be enabled" /></div> 48 49 </body> 50 </html>