1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: background-repeat:space</title>
5 <link rel="author" title="Jeffrey Carl Faden" href="http://www.jeffreyatw.com/">
6 <link rel="match" href="reference/background-repeat-space.htm">
7 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-repeat">
8 <meta name="flags" content="image">
9 <meta name="assert" content="The 'background-repeat: space' declaration must space out images in one or more dimensions so they fit a whole number of times in the background positioning area. The first and last images in each row and column must sit along edge(s) of the background positioning area.">
10 <style type="text/css">
11
12 div {
13 background-color: grey;
14 background-image: url("support/rectangle-96x60.png");
15 background-repeat: space;
16 height: 204px;
17 width: 236px;
18 }
19
20 </style>
21 </head>
22 <body>
23 <p><img src="support/rectangle-96x60.png" alt="Image download support must be enabled"></p>
24 <p>Test passes if the above image repeats in the below grey rectangle 6 times exactly: 2 columns, 3 rows. The images should appear at exactly the same size as the image above and be sitting at the edges of the grey rectangle.</p>
25 <p>Test fails if the above image repeats in the below rectangle more than 6 times, with partial images lining the right and the bottom.</p>
26 <div></div>
27 </body>
28 </html>