background_repeat_space_content_box.htm (1386B)
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="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'." /> 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: content-box; 16 background-image: url("../support/cat.png"); 17 background-repeat: space; 18 } 19 </style> 20 </head> 21 <body> 22 <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> 23 <div></div> 24 </body> 25 </html>