Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / css-backgrounds / background-repeat-space-padding-box.htm
blobe9e9bd2046a232a57fafab58df8c9e5736e9ff78
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="flags" content="" />
8 <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'." />
9 <style type="text/css">
10 #reference
12 width: 2.9in;
13 height: 2.9in;
14 padding: 25px;
15 border: 25px double black;
16 background-clip: padding-box;
17 background-image: url("../support/red_space_pb.png");
19 #test
21 margin-top: -378px;
22 width: 2.9in;
23 height: 2.9in;
24 padding: 25px;
25 border: 25px double black;
26 background-origin: padding-box;
27 background-image: url("support/green_color.png");
28 background-repeat: no-repeat;
29 background-repeat: space;
31 </style>
32 </head>
33 <body>
34 <p>Test passes if there is no red visible on the page.</p>
35 <div id="reference"></div>
36 <div id="test"></div>
37 </body>
38 </html>