full-width-001.html (2048B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Writing Modes: 'text-combine-upright: all' applied on a single typographic full-width unit character</title> 6 <link rel="author" title="Masataka Yakura" href="http://google.com/+MasatakaYakura"> 7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 8 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-fullwidth" title="9.1.3.1. Full-width Characters"> 9 <link rel="mismatch" href="reference/full-width-001-horizontal-notref.html"> 10 <link rel="mismatch" href="reference/full-width-001-nofullwidth-notref.html"> 11 <meta content="asis should" name="flags"> 12 <meta name="assert" content="When 'text-combine-upright: all' and 'text-transform: full-width' are applied simultaneously on 1 single typographic unit or when 'text-combine-upright: all' is set on a full-width typographic unit character, then such typographic unit remains a full-width character."> 13 14 <!-- 15 This test is the equivalent of the "2" month in the 16 <date>2010年2月23日</date> example of example 17 in 17 section 9.1.3.1 of the specification 18 --> 19 20 <style> 21 div 22 { 23 font-size: 64px; 24 writing-mode: vertical-rl; 25 } 26 27 div > p 28 { 29 border: black solid 1px; 30 } 31 32 span.tcu-all 33 { 34 text-combine-upright: all; 35 } 36 37 span.full-width 38 { 39 text-transform: full-width; 40 } 41 </style> 42 43 </head> 44 45 <body> 46 47 <p>Test passes if the glyphs in the 3 rectangles have the <strong>same order</strong>, the <strong>same orientation</strong> and the <strong>same layout</strong>; a different inter-character spacing is considered as PASS.</p> 48 49 <div> 50 51 <p id="test1"><span class="tcu-all full-width">4</span>月</p> 52 53 <!-- 4 is the ISO-Latin1 digit 4 --> 54 55 <p id="test2"><span class="tcu-all">4</span>月</p> 56 57 <!-- 4 is the FULLWIDTH DIGIT 4 (≈ <wide> 0034 4)--> 58 59 <p id="reference">4月</p> 60 61 <!-- 4 is the FULLWIDTH DIGIT 4 (≈ <wide> 0034 4)--> 62 63 </div> 64 65 </body> 66 </html>