blob: 3ed68448b368d6160708cb26adab5141b7e49e8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: background</title>
<meta name="flags" content="ahem image interact scroll" />
<link rel="help" href="http://www.w3.org/TR/REC-CSS1#background"/>
<link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css"><![CDATA[
html {background: url(support/swatch-blue.png) repeat-x center top fixed;}
div { font: 15px/1 Ahem; background: red; color: green; width: 11em; margin: 0 0 0 2em; }
.dummy { color: silver; }
.one {background: green url(support/swatch-red.png) repeat-y 100% 0%;}
.two {background: green url(support/swatch-red.png) repeat-y center top;}
.three {background: green url(support/swatch-red.png) repeat-x left top;}
]]></style>
<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'"/>
</head>
<body>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p>Scroll this document. A line of blue should remain stuck at the
top of the viewport the whole time, and there should be no red
below, just a block of green.</p>
<div class="one">
          X
          X
          X
          X
          X
</div>
<div class="two">
     X     
     X     
     X     
     X     
     X     
</div>
<div class="three">
XXXXXXXXXXX
           
           
           
           
</div>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
<p class="dummy">Dummy text.</p>
</body>
</html>
|