tor-browser

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

ic-unit-009.html (1374B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Values and Units Test: ic unit in height (basic)</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-values-4/#font-relative-lengths">
      9  <link rel="match" href="reference/ic-unit-009-ref.html">
     10 
     11  <meta name="assert" content="In this test, the ic unit is the advance height measure of the 水 (CJK water ideograph, U+6C34) glyph.">
     12 
     13  <style>
     14  @font-face
     15    {
     16      font-family: IcTestFullWidth;
     17      src: url(resources/IcTestFullWidth.woff2);
     18    }
     19 
     20  div
     21    {
     22      float: left;
     23      font-family: IcTestFullWidth;
     24      font-size: 80px; /* arbitrary font size */
     25      writing-mode: vertical-rl;
     26    }
     27 
     28  div#test-blue
     29    {
     30      background-color: blue;
     31      height: 5ic;
     32      width: 1.8em;
     33    }
     34 
     35  div#reference-orange
     36    {
     37      background-color: orange;
     38      color: orange;
     39      line-height: 1.8; /* arbitrary line-height */
     40    }
     41  </style>
     42 
     43  <p>Test passes if there is a blue rectangle with the <strong>same height</strong> as an orange rectangle.
     44 
     45  <div id="test-blue"></div>
     46 
     47  <div id="reference-orange">&#27700;&#27700;&#27700;&#27700;&#27700;</div>
     48 
     49  <!--
     50 
     51  水 (CJK water ideograph, U+6C34) glyph == &#27700;
     52 
     53  水 (CJK water ideograph, U+6C34) glyph == &#x6C34;
     54 
     55  -->