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 'padding-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 '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'." name="assert">
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
37
38 </body></html>