background_repeat_space_border_box

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

WeasyPrint

This browser

Assertion
When 'background-repeat: space' and background positioning area is set to 'border-box' the image is repeated as often within the 'border-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'border-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 'border-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 'border-box' the image is repeated as often within the 'border-box' without being clipped, the images are spaced out to fill the area and the first and last images touch the edges of the 'border-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: border-box;
16                 background-image: url("support/green_color.png"), url("../support/space_border_box.png");
17                 background-repeat: no-repeat;
18                 background-repeat: space, no-repeat;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if green is visible on the page and there is no red is visible on the page.</p>
24         <div></div>
25     
26 
27 </body></html>