tor-browser

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

text-decoration-thickness-vertical-002.html (1734B)


      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:width; 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 right of the text
     22         * at the left edge of the #box scrollpart. Its
     23         * text-decoration should grow "out" away from the
     24         * text, covering up the scrollport. We will use a
     25         * 1.2 em-wide decoration line to be sure the
     26         * scrollport is still fully covered if there are
     27         * small differences in the placement of the line.
     28         */
     29        #text{
     30            color: transparent;
     31            writing-mode: vertical-lr;
     32            position: relative;
     33            right: 1.1em;
     34            text-decoration: green underline;
     35            text-decoration-skip-ink: none;
     36            text-decoration-thickness: 1.2em;
     37            text-underline-position: from-font right;
     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>