1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: background-position
</title>
5 <script src=
"../resources/ahem.js"></script>
6 <style type=
"text/css">
7 html
,body
,div
{ margin: 0; border: 0; padding: 0; }
8 div
{ font: 15px/1 Ahem
; color: white
; width: 11em; }
11 .four {background-image: url
(support
/swatch-red
.png
); background-position: 100% 100%;
12 background-repeat: no-repeat
;}
13 .five {background-image: url
(support
/swatch-red
.png
); background-position: 0% 50%;
14 background-repeat: no-repeat
;}
15 .six {background-image: url
(support
/swatch-red
.png
); background-position: 80% 25%;
16 background-repeat: no-repeat
;}
17 .seven {background-image: url
(support
/swatch-red
.png
); background-position: 30px 30px;
18 background-repeat: no-repeat
;}
20 <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'">
23 <p>There should be no red on this page.
</p>