tor-browser

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

background-origin-004.html (1522B)


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