tor-browser

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

background-image-007.html (1564B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Backgrounds and Borders Test: ::first-letter with multiple background images</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="author" title="Justin Hill" href="http://www.justin-hill.com">
      9  <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-image">
     10  <link rel="help" href="https://www.w3.org/TR/css-pseudo-4/#first-letter-styling">
     11  <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
     12  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     13 
     14  <!--
     15 
     16  More information:
     17 
     18  https://github.com/web-platform-tests/wpt/issues/22261
     19 
     20  -->
     21 
     22  <meta name="assert" content="This test checks that 'background-image' applies to ::first-letter pseudo-element and that, in case of multiple background images, the first specified one must be on top (closest to the user).">
     23 
     24  <style>
     25  div
     26    {
     27      color: transparent;
     28      /* So that background shines through both "A" and "Z" glyphs */
     29      line-height: 1;
     30    }
     31 
     32  div::first-letter
     33    {
     34      background-color: red;
     35      background-image:
     36        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' style='background: green'></svg>"),
     37        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' style='background: red'></svg>");
     38      font-family: Ahem;
     39      font-size: 100px;
     40    }
     41  </style>
     42 
     43  <p>Test passes if there is a filled green square and <strong>no red</strong>.
     44 
     45  <div>AZ</div>