background-root-010.xht (1277B)
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> - propagation vs. image</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/07.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-010-ref.xht" /> 9 10 <meta name="flags" content="image"/> 11 <style type="text/css"><![CDATA[ 12 body { border: solid lime; background: green url(support/square-purple.png) repeat-y top left; color: white; } 13 html { border: solid blue; background: transparent url(support/square-white.png); color: yellow; } 14 :link, :visited { color: inherit; background: transparent; } 15 * { margin: 1em; padding: 1em; } 16 ]]></style> 17 18 </head> 19 <body> 20 <p>This text should in a green box with a green border, on the inside 21 left of which there should be a vertical line of purple tiles. The 22 box should be surrounded by a blue rectangle drawn on a background of 23 white tiles that covers the entire rest of the page. 24 </p> 25 26 27 </body> 28 </html>