tor-browser

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

background-clip-010.html (1199B)


      1 <!DOCTYPE html>
      2 
      3 <html>
      4 
      5 <head>
      6 
      7  <meta charset="UTF-8">
      8 
      9  <title>CSS Background and Borders Test: background-clip - content-box with background-color</title>
     10 
     11  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
     12  <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-clip" title="3.7. Painting Area: the 'background-clip' property">
     13  <link rel="match" href="reference/ref-if-there-is-no-red.xht">
     14 
     15  <meta content="When 'background-clip' is set to 'content-box', then the background painting area is clipped at the edges of the content of the element. In this test, height is 'auto', therefore its used value is '0px'; width is 'auto', therefore its used value is as wide as the body element. So, the content box is 0px tall and as wide as the body element; therefore, red should not be visible." name="assert">
     16 
     17  <style type="text/css">
     18  div
     19  {
     20  background-clip: content-box;
     21  background-color: red;
     22  border: transparent solid 20px;
     23  height: auto;
     24  padding: 30px;
     25  width: auto;
     26  }
     27  </style>
     28 
     29 </head>
     30 
     31 <body>
     32 
     33  <p>Test passes if there is <strong>no red</strong>.</p>
     34 
     35  <div></div>
     36 
     37 </body>
     38 </html>