background_repeat_space_content_box

'Background-repeat: space' when background positioning area is 'content-box'

WeasyPrint

This browser

Assertion
When 'background-repeat: space' and background positioning area is set to 'content-box' the image is repeated as often within the 'content-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'content-box'.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
 3         <title>CSS Test: 'Background-repeat: space' when background positioning area is 'content-box'</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#the-background-repeat" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="When 'background-repeat: space' and background positioning area is set to 'content-box' the image is repeated as often within the 'content-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'content-box'." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 width: 2.9in;
12                 height: 2.9in;
13                 padding: 25px;
14                 border: 25px double black;
15                 background-origin: content-box;
16                 background-image: url("../support/cat.png");
17                 background-repeat: space;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if there are four unclipped cats below, if the cats are equally spaced from each other, and if the cats do not touch or overlap the double border.</p>
23         <div></div>
24     
25 
26 </body></html>