tor-browser

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

text-underline-offset-001.html (1416B)


      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="text-decoration:underline; there is a line at or under the alphabetic baseline">
      7    <link rel="author" title="Charlie Marlow" href="mailto:cmarlow@mozilla.com">
      8    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
      9    <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#underline-offset">
     10    <link rel="mismatch" href="reference/text-underline-offset-001-notref.html">
     11    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12    <style>
     13        #main {
     14            margin: 2em;
     15            display:flex
     16        }
     17        div span {
     18            text-decoration: green underline;
     19            text-decoration-skip-ink: none;
     20            font: 20px/1 Ahem;
     21            color: transparent;
     22            padding-bottom: 20px;
     23            border: 1px dotted transparent;
     24            border-bottom-color: cyan;
     25        }
     26        #rightbox {
     27            text-underline-offset: 24px;
     28        }
     29    </style>
     30 </head>
     31 <body>
     32    <p class="instructions">Test passes if the box on the right has a lower underline than the box on the left</p>
     33    <div id="main">
     34        <div>
     35            <p>left<span>XXXX</span></p>
     36        </div>
     37        <div>
     38            <p><span id="rightbox">XXXX</span>right</p>
     39        </div>
     40    </div>
     41 </body>
     42 </html>