ch-unit-003.html (1035B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Values and Units Test: support for the ch unit</title> 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-values-3/#font-relative-lengths"> 6 <link rel="match" href="reference/ch-unit-001-ref.html"> 7 <meta name="assert" content="In vertical mixed, The ch unit is equal to the used horizontal advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it."> 8 <style> 9 span { 10 background: green; 11 color: green; 12 left: 0; right: 0; 13 position: absolute; 14 } 15 div { 16 background: red; 17 color: red; 18 position: relative; 19 height: 5ch; 20 width: 10ch; 21 writing-mode: vertical-rl; 22 text-orientation: mixed; 23 } 24 25 div + div { 26 height: auto; 27 } 28 29 div + div span { 30 height: 5ch; 31 } 32 </style> 33 <body> 34 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 35 <div><span>00000</span></div> 36 <div><span></span>00000</div> 37 </body>