background-repeat-repeat-y.xht (1415B)
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 Reference: background-repeat:repeat-y</title> 5 <link rel="author" title="Jeffrey Carl Faden" href="http://www.jeffreyatw.com/" /> 6 <style type="text/css"> 7 <![CDATA[ 8 div { 9 background-color: grey; 10 height: 150px; 11 width: 240px; 12 position: relative; 13 overflow: hidden; 14 } 15 div > img { 16 position: absolute; 17 left: 0; 18 } 19 div > img.first { 20 top: 0; 21 } 22 div > img.second { 23 top: 60px; 24 } 25 div > img.third { 26 top: 120px; 27 } 28 ]]> 29 </style> 30 </head> 31 <body> 32 <p><img src="support/rectangle-96x60.png" alt="Image download support must be enabled"/></p> 33 <p>Test passes if the above image repeats vertically in the below rectangle 2½ times exactly. There should be a grey area to the right of the images, but not below them.</p> 34 <div> 35 <img src="support/rectangle-96x60.png" alt="Image download support must be enabled" class="first"/> 36 <img src="support/rectangle-96x60.png" alt="Image download support must be enabled" class="second"/> 37 <img src="support/rectangle-96x60.png" alt="Image download support must be enabled" class="third"/> 38 </div> 39 </body> 40 </html>