full-width-003

CSS Writing Modes: 'text-combine-upright: digits 2' applied on 2 full-width characters

WeasyPrint

Reference (bad) by WeasyPrint

Reference (bad) by this browser

Reference (bad) by WeasyPrint

Reference (bad) by this browser

Reference (bad) by WeasyPrint

Reference (bad) by this browser

This browser

Flags
asis, should
Assertion
When two or more full-width characters are combined, they are first converted to non-full-width characters.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3 <meta charset="utf-8">
 4 <title>CSS Writing Modes: 'text-combine-upright: digits 2' applied on 2 full-width characters</title>
 5 <link href="http://google.com/+MasatakaYakura" rel="author" title="Masataka Yakura">
 6 <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="author" title="Gérard Talbot">
 7 <link href="http://www.w3.org/TR/css-writing-modes-3/#text-combine-fullwidth" rel="help" title="9.1.3.1. Full-width Characters">
 8 <link href="https://www.w3.org/TR/css-text-3/#text-transform-property" rel="help" title="2.1. Case Transforms: the 'text-transform' property">
 9 <link href="reference/full-width-002-notcu-notref.htm" rel="mismatch">
10 <link href="reference/full-width-002-horizontal-notref.htm" rel="mismatch">
11 <meta content="asis should" name="flags">
12 <meta content="When two or more full-width characters are combined, they are first converted to non-full-width characters." name="assert">
13 
14   <!--
15   This test is the equivalent of the "23" day 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-digits2
33     {
34       text-combine-upright: digits 2;
35     }
36 
37   span.full-width
38     {
39       text-transform: full-width;
40     }
41 </style>
42 </head>
43 <body>
44 
45 <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>
46 
47 <div>
48 
49   <p id="test1"><span class="full-width tcu-digits2">28</span></p>
50 
51   <!-- &#x32; is the ISO-Latin1 digit 2 -->
52 
53   <!-- &#x38; is the ISO-Latin1 digit 8 -->
54 
55   <p id="test2"><span class="tcu-digits2">28</span></p>
56 
57   <!-- &#xFF12; is the FULLWIDTH DIGIT 2 (≈ <wide> 0032 2)-->
58 
59   <!-- &#xFF18; is the FULLWIDTH DIGIT 8 (≈ <wide> 0038 8)-->
60 
61   <p id="reference"><span class="tcu-digits2">28</span></p>
62 
63 </div>
64 
65 
66 
67 </body></html>