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_content_box.htm
blob60bafac8136dd99958f07150485ec2b3ae60995b
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 'content-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 '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'." />
9 <style type="text/css">
10 div
12 width: 2.9in;
13 height: 2.9in;
14 padding: 25px;
15 border: 25px double black;
16 background-origin: content-box;
17 background-image: url("../support/cat.png");
18 background-repeat: space;
20 </style>
21 </head>
22 <body>
23 <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>
24 <div></div>
25 </body>
26 </html>