background-root-019

Canvas background - position

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: Canvas background - 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/16.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: 1em solid blue; background: navy url(support/diamond.png) -2em -2em no-repeat; color: yellow; }
11    :link, :visited { color: inherit; background: transparent; }
12    * { margin: 1em; padding: 1em; }
13 </style>
14 
15 </head>
16 <body>
17 <p> This time, there should be a single purple diamond at the upper left
18 hand corner of the viewport. It should be bathed in blue. In this sea
19 of blue there should be a bright thick blue border, containing more
20 blue and a thin bright green border, which itself contains only green
21 and this text.</p>
22 
23 
24 </body>
25 </html>