tor-browser

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

ic-unit-015.html (1204B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Values and Units Test: support for the ic unit</title>
      4 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-values-4/#ic">
      6 <link rel="match" href="reference/ch-unit-016-ref.html">
      7 <meta name="assert" content="The ic unit = used advance measure of the “水” (CJK water ideograph, U+6C34) glyph found in the font used to render it">
      8 <style>
      9 @font-face {
     10  font-family: ASCIIonly;
     11  src: local(Ahem), url("/fonts/Ahem.ttf");
     12  unicode-range: U+0000-007F;
     13 }
     14 @font-face {
     15  font-family: IcTestHalfWidth;
     16  src: url("resources/IcTestHalfWidth.woff2");
     17 }
     18 div {
     19  height: 10px;
     20  background-color: blue;
     21  margin-top: 10px;
     22 }
     23 .test {
     24  width: calc(20px + 2ic);
     25 }
     26 .ref {
     27  width: 100px;
     28 }
     29 </style>
     30 <p>The test passes if there are two blue rectangles of equal length.</p>
     31 <!-- ASCIIonly only supports basic ASCII, and therefore should NOT be used
     32     to derive the size of the 'ic' unit, which should instead be based on the
     33     U+6C34 ideograph in IcTestHalfWidth, which is 0.5em wide. -->
     34 <div class="test" style="font: 80px ASCIIonly, IcTestHalfWidth;"></div>
     35 <div class="ref"></div>