tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ch-unit-002.html (1213B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Values and Units Test: the ch unit in vertical orientation</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="help" href="https://www.w3.org/TR/css-writing-modes-3/#block-flow">
      7 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
      8 <link rel="match" href="reference/ch-unit-002-ref.html">
      9 <meta name="assert" content="In vertical upright, the ch unit is equal to the used vertical advance measure of the 0 (ZERO, U+0030) glyph found in the font used to render it.">
     10 <style>
     11 span {
     12    background: green;
     13    color: green;
     14    left: 0; right: 0;
     15    position: absolute;
     16 }
     17 div {
     18    background: red;
     19    color: red;
     20    position: relative;
     21    height: 5ch;
     22    width: 10ch;
     23    writing-mode: vertical-rl;
     24    text-orientation: upright;
     25 }
     26 
     27 div + div {
     28    height: auto;
     29 }
     30 
     31 div + div span {
     32    height: 5ch;
     33 }
     34 </style>
     35 <body>
     36    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     37    <div><span>00000</span></div>
     38    <div><span></span>00000</div>
     39 </body>