tor-browser

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

background-size-032.html (1210B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Backgrounds and Borders Test: background-size - applies to ::first-letter pseudo-element</title>
      6    <link rel="author" title="Intel" href="http://www.intel.com">
      7    <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2012-11-17 -->
      8    <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-size" title="3.9. Sizing Images: the 'background-size' property">
      9    <link rel="help" href="http://www.w3.org/TR/css3-background/#values">
     10    <meta name="flags" content="image">
     11    <meta name="assert" content="Check if background-size is able to apply to the ::first-letter pseudo-element.">
     12    <style>
     13        div {color: white;}
     14 
     15        div::first-letter {
     16            background-image: url(support/blue96x96.png);
     17            background-repeat: repeat no-repeat;
     18            background-size: 100% 50%;
     19            color: black;
     20            font-size: 80px;
     21        }
     22    </style>
     23  </head>
     24  <body>
     25    <p>Test passes if only the <strong>top half</strong> of the E glyph has a <strong>blue background</strong>.</p>
     26    <div>Ex</div>
     27  </body>
     28 </html>