background-root-006

Image backgrounds on and - image vs. color

WeasyPrint

This browser

Flags
image

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 <head>
 4 <title>CSS Test: Image backgrounds on &lt;body&gt; and &lt;html&gt; - image vs. color</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/03.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background">
 8   <meta name="flags" content="image">
 9 <style type="text/css">
10    body { border: solid lime; background: red url(support/square-white.png); color: green; }
11    p { font: 900 1.75em Verdana, sans-serif; }
12    html { border: solid blue; background: navy; color: yellow; }
13    :link, :visited { color: inherit; background: transparent; }
14    * { margin: 1em; padding: 1em; }
15 </style>
16 
17 </head>
18 <body>
19 <p>This box, which should have a bright green border, should have a
20 white tile background. The box surrounding it should have a navy
21 background. The rest of the page should also be navy.</p>
22 
23 
24 </body>
25 </html>