tor-browser

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

text-underline-offset-zero-position.html (1465B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>text-underline-offset test case</title>
      6    <meta name="assert" content="zero-position for text-underline-offset is at the alphabetic baseline">
      7    <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
      8    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#line-offset-zero">
      9    <link rel="match" href="reference/text-underline-offset-zero-position-ref.html">
     10    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11    <style>
     12        .green {
     13            color: green;
     14        }
     15        .red {
     16            color: red;
     17        }
     18        #test {
     19            font: 100px Ahem;
     20            color: green;
     21            -webkit-text-decoration-skip: none;
     22            text-decoration-skip-ink: none;
     23        }
     24        u {
     25            text-decoration: underline;
     26            text-decoration-color: red;
     27            text-decoration-thickness: 20px;
     28            text-underline-position: auto;
     29            text-underline-offset: 0px;  /* at the alphabetic baseline, per spec */
     30        }
     31    </style>
     32 </head>
     33 <body>
     34    <p class="instructions">Test passes if there is a <span class=green>green</span> line and <span class=red>no red</span>.</p>
     35    <div id="test">
     36        <!-- At 100px, the "p" in Ahem will be a box with its top at the baseline,
     37             and its bottom 20px (0.2em) below the baseline. -->
     38        <u>ppp</u>
     39    </div>
     40 </body>
     41 </html>