tor-browser

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

background-origin-007.html (1830B)


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