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-position</title>
5 <meta name="flags" content="ahem image">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#background-position">
7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
9 <style type="text/css">
10 html,body,div { margin: 0; border: 0; padding: 0; }
11 div { font: 15px/1 Ahem; color: white; width: 11em; }
12
13 /* tests */
14 .four {background-image: url(support/swatch-red.png); background-position: 100% 100%;
15 background-repeat: no-repeat;}
16 .five {background-image: url(support/swatch-red.png); background-position: 0% 50%;
17 background-repeat: no-repeat;}
18 .six {background-image: url(support/swatch-red.png); background-position: 80% 25%;
19 background-repeat: no-repeat;}
20 .seven {background-image: url(support/swatch-red.png); background-position: 30px 30px;
21 background-repeat: no-repeat;}
22 </style>
23 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties" title="14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'">
24 </head>
25 <body>
26 <p>There should be no red on this page.</p>
27 <div class="four">
28
29
30
31
32 X
33 </div>
34 <div class="five">
35
36
37 X
38
39
40 </div>
41 <div class="six">
42
43 X
44
45
46
47 </div>
48 <div class="seven">
49
50
51 X
52
53
54 </div>
55 </body>
56 </html>