text-orientation-upright-srl-018.xht (1899B)
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-rl' - 'text-orientation: upright' 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 <link rel="match" href="text-orientation-mixed-srl-016-ref.xht" /> 12 13 <meta name="assert" content="This test checks that when 'writing-mode' is set to 'sideways-rl', then a 'text-orientation: upright' declaration has no effect: the alphabetical baseline is used as the dominant baseline and all the glyphs remain rotated 90 degrees clockwise. The typographic mode for 'sideways-rl' 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 24 { 25 border: gray solid 1px; 26 font: bold 26px/32px "mplus-1p-regular"; 27 margin-bottom: 4px; 28 } 29 30 div#test-srl 31 { 32 writing-mode: sideways-rl; 33 text-orientation: upright; 34 } 35 36 div#ref-vrl-sideways 37 { 38 text-orientation: sideways; 39 writing-mode: vertical-rl; 40 } 41 ]]></style> 42 43 </head> 44 45 <body> 46 47 <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> 48 49 <div id="test-srl">月火水Abc<br />def木金土</div> 50 51 <div id="ref-vrl-sideways">月火水Abc<br />def木金土</div> 52 53 </body> 54 </html>