tor-browser

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

text-decoration-thickness-scroll-001.html (1511B)


      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: increased width text decorations don't create scrollable overflow">
      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-scroll-001-ref.html">
     11    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     12    <style>
     13        #box{
     14            font: 20px/1 Ahem;
     15            border: black solid;
     16            overflow-y: auto;
     17            height: 5em;
     18            width: 7em;
     19            background-color: red;
     20        }
     21        /*
     22         * Testing to make sure that increasing the width of
     23         * of the text decoration does not create scrollable
     24         * overflow
     25         */
     26        #text{
     27            position: relative;
     28            bottom: 1em;
     29            color: transparent;
     30            text-decoration: green underline;
     31            text-decoration-skip-ink: none;
     32            text-decoration-thickness: 8em;
     33            text-underline-position: from-font;
     34        }
     35    </style>
     36 </head>
     37 <body>
     38    <div>Test fails if there is a red line or scrollbar in the box</div>
     39    <div id="box">
     40        <div id="text">XXXXXXX</div>
     41    </div>
     42 </body>
     43 </html>