tor-browser

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

text-decoration-thickness-linethrough-001.html (1427B)


      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        div{
     14            overflow: hidden;
     15            height: 1em;
     16            width: 4em;
     17            background-color: red;
     18            font: 20px/1 Ahem;
     19            color: transparent;
     20            text-decoration: green line-through;
     21            text-decoration-skip-ink: none;
     22            /* We make the text decoration just a bit thicker than the div's height, so that
     23             * it will entirely cover the div's content-box (making it fully green) as long
     24             * as the line-through is approximately centered, vertically.
     25             */
     26            text-decoration-thickness: 1.1em;
     27        }
     28    </style>
     29 </head>
     30 <body>
     31    <p>Test passes if there is a wide green block, fails if there is any red visible</p>
     32    <div>XXXXXXXXXXXXXXXXXXXX</div>
     33 </body>
     34 </html>