tor-browser

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

background-clip-004.html (1399B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5    <title>CSS Backgrounds and Borders Test: background-clip - 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-clip" title="3.7. Painting Area: the 'background-clip' property">
      9    <link rel="match" href="reference/background-clip-004-ref.html">
     10    <meta name="assert" content="Background-clip with 'padding-box' implies to paint the background within (clipped to) the padding box.">
     11    <style>
     12        #test-overlapped-red {
     13            background-clip: padding-box;
     14            background-color: red;
     15            border: transparent dotted 5px;
     16            height: 100px;
     17            padding: 25px;
     18            width: 100px;
     19        }
     20        #ref-overlapping-green {
     21            background-color: green;
     22            bottom: 155px;
     23            height: 150px;
     24            left: 5px;
     25            position: relative;
     26            width: 150px;
     27        }
     28    </style>
     29  </head>
     30  <body>
     31    <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     32    <div id="test-overlapped-red"></div>
     33    <div id="ref-overlapping-green"></div>
     34  </body>
     35 </html>