text-orientation-011.xht (1714B)
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: text-orientation - upright</title> 8 9 <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" /> 10 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 11 <link rel="help" title="5.1 Orienting Text: the 'text-orientation' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" /> 12 13 <meta name="assert" content="This test checks that 'text-orientation: upright' causes characters from horizontal-only scripts to be rendered upright, i.e. in their standard horizontal orientation, in vertical writing modes." /> 14 15 <style type="text/css"><![CDATA[ 16 @font-face 17 { 18 font-family: "CSS Full-Width Orientation Test"; 19 src: url("/fonts/adobe-fonts/CSSFWOrientationTest.otf") format("opentype"); 20 } 21 22 div 23 { 24 color: blue; 25 font-family: "CSS Full-Width Orientation Test"; 26 font-size: 180px; 27 line-height: 3; 28 text-orientation: upright; 29 writing-mode: vertical-rl; 30 } 31 32 span 33 { 34 color: orange; 35 } 36 ]]></style> 37 38 </head> 39 40 <body> 41 42 <p>Test passes if there are 2 rectangles with a white <strong>triangle pointing up</strong> and if the orange rectangle is below the blue rectangle.</p> 43 44 <div>F<span>A</span></div> 45 46 <!-- 47 Unfortunately, we can not compare text with images even with web-fonts. Rendering varies 48 by platform, like Retina (high-res) Mac will fail if you compare text with 49 pre-rendered image. Koji Ishii, 2016-01-17 50 --> 51 52 </body> 53 </html>