background-root-002.xht (1203B)
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 on root element - background-position</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-05-06 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties" /> 8 <link rel="match" href="background-root-002-ref.xht" /> 9 10 <meta name="flags" content="image" /> 11 <meta name="assert" content="Background of the root has the initial background-position of 0, 0 and not the canvas." /> 12 <style type="text/css"> 13 html 14 { 15 background: url("support/green_box.png") repeat-x; 16 color: white; 17 margin: 1in; 18 } 19 20 body 21 { 22 margin: 8px; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if this text is within the green box.</p> 28 </body> 29 </html>