text-orientation-mixed-vrl-002.xht (2303B)
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"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>CSS Writing Modes Test: text-orientation - mixed in vertical-rl writing mode</title> 6 <link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" /> 7 <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 8 <link rel="help" title="5.1 Orienting Text: the 'text-orientation' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" /> 9 <meta name="flags" content="image" /> 10 <meta name="assert" content="This test checks that when 'text-orientation' is set to 'mixed', then latin alphabet characters are displayed sideways (rotated 90 degrees clockwise). In this test, the 'FULLWIDTH LATIN CAPITAL LETTER T' must be typeset upright." /> 11 <style type="text/css"><![CDATA[ 12 @font-face 13 { 14 font-family: "mplus-1p-regular"; 15 src: url("/fonts/mplus-1p-regular.woff") format("woff"); 16 /* filesize: 803300 bytes (784.5 KBytes) */ 17 } 18 19 div 20 { 21 float: left; 22 color: blue; 23 font-family: "mplus-1p-regular"; 24 font-size: 30px; 25 line-height: 1.4; /* equivalent to 42px: 26 so that top-half-leading outside content area is 6px 27 and bottom-half-leading outside content area is 6px */ 28 margin: 10px; 29 } 30 31 div#vertical 32 { 33 border: 1px solid gray; 34 text-orientation: mixed; 35 writing-mode: vertical-rl; 36 } 37 38 img {vertical-align: top;} 39 40 ]]></style> 41 </head> 42 <body> 43 44 <p>Test passes if characters in both "Text sample" rectangles have the <strong>same order</strong>, <strong>same layout</strong> and the <strong>same orientation</strong>: "T" should be upright and "ext sample" should be rotated 90° clockwise.</p> 45 46 <div id="vertical">Text sample</div> 47 <!-- 48 HTML Entity (decimal) T or HTML Entity (hex) T is Unicode Character 'FULLWIDTH LATIN CAPITAL LETTER T' 49 More info: 50 http://lists.w3.org/Archives/Public/public-css-testsuite/2015Dec/0008.html 51 --> 52 53 <div><img src="support/text-orientation-mixed-vrl-002.png" width="44" height="198" alt="Image download support must be enabled" /></div> 54 55 </body> 56 </html>