tor-browser

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

background-repeat-space-padding-box.htm (1715B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3    <head>
      4        <title>CSS Test: 'Background-repeat: space' when background positioning area is 'padding-box'</title>
      5        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6        <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-repeat" />
      7        <meta name="assert" content="When 'background-repeat: space' and background positioning area is set to 'padding-box' the image is repeated as often within the 'padding-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'padding-box'." />
      8        <style type="text/css">
      9            #reference
     10            {
     11                width: 2.9in;
     12                height: 2.9in;
     13                padding: 25px;
     14                border: 25px double black;
     15                background-clip: padding-box;
     16                background-image: url("../support/red_space_pb.png");
     17            }
     18            #test
     19            {
     20                margin-top: -378px;
     21                width: 2.9in;
     22                height: 2.9in;
     23                padding: 25px;
     24                border: 25px double black;
     25                background-origin: padding-box;
     26                background-image: url("support/green_color.png");
     27                background-repeat: no-repeat;
     28                background-repeat: space;
     29            }
     30        </style>
     31    </head>
     32    <body>
     33        <p>Test passes if there is no red visible on the page.</p>
     34        <div id="reference"></div>
     35        <div id="test"></div>
     36    </body>
     37 </html>