tor-browser

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

initial-letter-layout-text-decoration-underline.html (1255B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>Tests initial letter with text-decoration</title>
      5 <link rel="author" title="Google LLC" href="https://www.google.com/">
      6 <link rel="help" href="https://drafts.csswg.org/css-inline/#initial-letter-layout">
      7 <meta name="flags" content="ahem">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
      9 <link rel="match" href="initial-letter-layout-text-decoration-underline-ref.html">
     10 <style>
     11    .sample {
     12        border: solid 1px green;
     13        font-family: Ahem;
     14        font-size: 20px;
     15        line-height: 24px;
     16        width: 230px;
     17        color: transparent;
     18        text-decoration-color: black;
     19        text-decoration-line: underline;
     20        text-decoration-skip-ink: none;
     21        text-decoration-thickness: 1px;
     22    }
     23 
     24    .initial-letter::first-letter {
     25        initial-letter: 3 drop;
     26        font-size: 100px;   /* should be ignored in rendering */
     27        line-height: 50px;  /* should be ignored in rendering */
     28        text-decoration-color: black;
     29        text-decoration-line: underline;
     30        text-decoration-skip-ink: none;
     31        text-decoration-thickness: 1px;
     32    }
     33 </style>
     34 </head>
     35 <body>
     36 <div class="sample initial-letter">
     37 Abc<br>def<br>ghi<br>jkl<br>mno<br>
     38 </div>
     39 </body>
     40 </html>