background-root-015.xht (1249B)
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 propagation on <body> and <html> - double positioning</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/12.html" type="text/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background"/> 8 <link rel="match" href="background-root-015-ref.xht" /> 9 <meta name="flags" content="image"/> 10 <style type="text/css"><![CDATA[ 11 body { border: solid lime; background: white url(support/square-purple.png) no-repeat top center; color: black; } 12 html { border: solid blue; background: white url(support/square-teal.png) no-repeat top center; color: black; } 13 :link, :visited { color: inherit; background: transparent; } 14 * { margin: 1em; padding: 1em; } 15 html, body { padding-top: 70px; } 16 ]]></style> 17 18 </head> 19 <body> 20 <p>Centered just inside the top of the green-bordered box there should be a 21 purple square, and centered just inside the top of the blue-bordered box 22 there should be a teal square.</p> 23 24 25 </body> 26 </html>