background-root-013

Background propagation on and - non-propagated position

WeasyPrint

This browser

Flags
image, interact

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: Background propagation on &lt;body&gt; and &lt;html&gt; - non-propagated position</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/10.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background">
 8   <meta name="flags" content="image interact">
 9 <style type="text/css">
10    body { border: solid lime; background: green url(support/square-purple.png) no-repeat 50% 50%; color: white; }
11    html { border: solid blue; background: navy; color: yellow; }
12    :link, :visited { color: inherit; background: transparent; }
13    * { margin: 1em 5%; padding: 1em; }
14    body { margin-right: 30%; }
15 </style>
16 
17 </head>
18 <body>
19 <p> In the middle of this green box with the bright green border, there
20 should be a purple tile. Resizing the window should make its
21 position relative to this inner box stay the same.</p>
22 
23 
24 </body>
25 </html>