background-root-018.xht (1271B)
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> - Tiling and 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/15.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-018-ref.xht" /> 9 10 <meta name="flags" content="image"/> 11 <style type="text/css"><![CDATA[ 12 body { border: solid gray; background: red url(support/cat.png); color: black; } 13 html { border: solid 5px blue; background: transparent; color: black; } 14 span { background: yellow; font-size: larger; } 15 * { margin: 1em; padding: 1em; } 16 em, span { margin: 0; padding: 0; } 17 ]]></style> 18 19 </head> 20 <body> 21 <p><span>There should be lots of cats in the background, covering the 22 entire page, excluding the yellow background of this text, but 23 <em>including the area outside the blue box</em>. 24 One of the cats should start exactly inside the top left 25 corner of the blue box (the HTML box).</span></p> 26 27 </body> 28 </html>