background-size-applies-to-block.htm (1052B)
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-size' applied to element with a display of 'block'.</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-size" /> 7 <meta name="assert" content="'Background-size' property applies to elements with 'display: block'." /> 8 <style type="text/css"> 9 span 10 { 11 display: block; 12 height: 2in; 13 width: 2in; 14 border: 20px solid black; 15 padding: 20px; 16 background: url("support/black_color.png") no-repeat red; 17 background-size: 100% 100%; 18 } 19 </style> 20 </head> 21 <body> 22 <p>Test passes if there is no red visible on the page.</p> 23 <span></span> 24 </body> 25 </html>