background-root-004

Backgrounds on and - color vs color

WeasyPrint

This browser

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: Backgrounds on &lt;body&gt; and &lt;html&gt; - color 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/01.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background">
 8 <style type="text/css">
 9    body { border: solid lime; background: green; color: white; }
10    html { border: solid blue; background: navy; color: yellow; }
11    :link, :visited { color: inherit; background: transparent; }
12    * { margin: 1em; padding: 1em; }
13 </style>
14 
15 </head>
16 <body>
17 <p>This paragraph should be a box that is green with a green
18 border, which should be in a navy box with a bright blue border.
19 The rest of the page should also be navy. </p>
20 
21 
22 </body>
23 </html>