tor-browser

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

background-origin-003.html (1571B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Backgrounds and Borders Test: background-origin - padding-box keyword value</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-09 -->
      8    <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-origin" title="3.8. Positioning Area: the 'background-origin' property">
      9    <link rel="match" href="reference/background-origin-002-ref.html">
     10    <meta name="flags" content="image">
     11    <meta name="assert" content="Background-origin with 'padding-box' implies to position the background relative to the padding box.">
     12    <style>
     13        div {
     14            position: absolute;
     15        }
     16        #ref-overlapped-red {
     17            background-color: red;
     18            height: 60px;
     19            left: 5px;
     20            top: 5px;
     21            width: 60px;
     22        }
     23        #test-overlapping-green {
     24            background-image: url(support/60x60-green.png);
     25            background-origin: padding-box;
     26            background-repeat: no-repeat;
     27            border: transparent dotted 5px;
     28            height: 100px;
     29            padding: 25px;
     30            width: 100px;
     31        }
     32    </style>
     33  </head>
     34  <body>
     35    <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     36    <div id="container">
     37      <div id="ref-overlapped-red"></div>
     38      <div id="test-overlapping-green"></div>
     39    </div>
     40  </body>
     41 </html>