tor-browser

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

first-letter-001.html (868B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Test: ::first-letter formatting</title>
      6  <link rel="author" title="Florian Rivoal" href="mailto:florian@rivoal.net">
      7  <link rel="match" href="first-letter-001-ref.html">
      8  <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-styling">
      9  <meta name="assert" content="Test checks that a floated ::first-letter follows the usual formating rules for floats.">
     10  <style>
     11  div {
     12    font-size: 50px;
     13    position: absolute;
     14    left: 30px;
     15    top: 50px;
     16    background: red;
     17  }
     18  span {
     19    background : white;
     20  }
     21  div::first-letter {
     22    color: green;
     23    background: green;
     24    float: left;
     25  }
     26  </style>
     27 </head>
     28 <body>
     29  <p>Test passes if there is a <strong>filled green rectangle</strong> and <strong>no red</strong>.</p>
     30  <div>a<span>&nbsp;</span></div>
     31 </body>
     32 </html>