tor-browser

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

text-decoration-thickness-overline-001.html (1400B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>Test case for text-decoration-thickness</title>
      6    <meta name="assert" content="text-decoration-thickness: the width of the decoration line is increased">
      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/#text-decoration-width-property">
     10    <link rel="match" href="reference/text-decoration-thickness-green-rect-ref.html">
     11    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     12    <style>
     13        #box{
     14            font: 20px/1 Ahem;
     15            overflow: hidden;
     16            height: 1em;
     17            width: 4em;
     18            background-color: red;
     19        }
     20        /*
     21         * This is testing to ensure that the overline
     22         * "grows up" and covers the red in the box
     23         */
     24        #text{
     25            color: transparent;
     26            position: relative;
     27            top: 3em;
     28            text-decoration: green overline;
     29            text-decoration-skip-ink: none;
     30            text-decoration-thickness: 4em;
     31        }
     32    </style>
     33 </head>
     34 <body>
     35    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
     36    <div id="box">
     37        <div id="text">XXXXXXXXXXXXXXXXXXXX</div>
     38    </div>
     39 </body>
     40 </html>