tor-browser

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

text-decoration-thickness-vertical-001.html (1770B)


      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-vertical-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            background-color: red;
     16            height: 4em;
     17            width: 1em;
     18            overflow: hidden;
     19        }
     20        /*
     21         * The underline is placed to the left of the text
     22         * at the right edge of the #box scrollpart. It is
     23         * 1.3 em away so that the entire text-decoration covers
     24         * the vertical box. Its text-decoration should grow "out"
     25         * away from the text, covering up the scrollport. We
     26         * will use 1.5 em-wide decoration line to be sure the
     27         * scrollport is still fully covered if there are small
     28         * differences in the placement of the line.
     29         */
     30        #text{
     31            color: transparent;
     32            writing-mode: vertical-rl;
     33            position: relative;
     34            left: 1.3em;
     35            text-decoration: green underline;
     36            text-decoration-skip-ink: none;
     37            text-decoration-thickness: 1.5em;
     38        }
     39    </style>
     40 </head>
     41 <body>
     42    <p>Test fails if there is any red visible</p>
     43    <div id="box"><div id="text">XXXX</div></div>
     44 </body>
     45 </html>