text-orientation-mixed-slr-015.xht (1828B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Writing Modes Test: 'writing-mode: sideways-lr' - 'text-orientation: mixed' has no effect</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" title="5.1. Orienting Text: the 'text-orientation' property" href="http://www.w3.org/TR/css-writing-modes-4/#text-orientation" /> 11 12 <meta name="flags" content="image" /> 13 <meta name="assert" content="This test checks that when 'writing-mode' is set to 'sideways-lr', then a 'text-orientation: mixed' declaration has no effect: the alphabetical baseline is used as the dominant baseline and all the glyphs remain rotated 90 degrees counter-clockwise. The typographic mode for 'sideways-lr' is horizontal and 'text-orientation' has no effect on boxes in horizontal typographic modes." /> 14 15 <style type="text/css"><![CDATA[ 16 @font-face 17 { 18 font-family: "mplus-1p-regular"; 19 src: url("/fonts/mplus-1p-regular.woff") format("woff"); 20 /* filesize: 803300 bytes (784.5 KBytes) */ 21 } 22 23 div#slr 24 { 25 border: gray solid 1px; 26 font: bold 26px/32px "mplus-1p-regular"; 27 margin-bottom: 4px; 28 writing-mode: sideways-lr; 29 text-orientation: mixed; 30 } 31 ]]></style> 32 33 </head> 34 35 <body> 36 37 <p>Test passes if the glyphs in both rectangles have the <strong>same order</strong>, the <strong>same orientation</strong> and the <strong>same layout</strong>.</p> 38 39 <div id="slr">月火水Abc<br />def木金土</div> 40 41 <div><img id="reference" src="support/text-orientation-sideways-lr.png" width="66" height="133" alt="Image download support must be enabled" /></div> 42 43 </body> 44 </html>