background-root-003.xht (934B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: Background - background on root propagates to canvas</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background" /> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> 12 <meta content="Background set on root element should cover the canvas" name="assert" /> 13 14 <style type="text/css"><![CDATA[ 15 html 16 { 17 background-color: blue; 18 display: table; 19 width: 500px; 20 } 21 22 body 23 { 24 background-color: lime; 25 margin: 100px; 26 } 27 ]]></style> 28 29 </head> 30 31 <body> 32 33 <p>The whole area of this page should be blue and only this text should be in a bright green box.</p> 34 35 </body> 36 </html>