blob: d7e8940e2cb3c261e4eba50bdbabfef1575272f6 (
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>CSS Test: Scrolling Backgrounds in Scrolling Backgrounds</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/background/block/003.html" type="text/html"/>
<link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background" />
<meta name="flags" content="image interact scroll"/>
<style type="text/css">
.outer {
background: url(support/bordered-rectangle.png) -5px center scroll repeat-x;
border: 10px dotted;
overflow: auto; height: 190px; width: 390px;
white-space: pre; font-size: 16px;
text-align: center;
margin: -10px;
}
.inner {
background: url(support/cat.png) scroll center no-repeat;
border: 10px dotted orange; margin: 0 auto;
overflow: auto; height: 99px; width: 80%;
color: orange;
}
.backdrop {
border: teal solid 10px;
background: yellow;
width: 390px;
}
ul { color: navy; }
</style>
</head>
<body>
<ul>
<li>You should see teal underneath the dotted black border below.</li>
<li>There should be exactly two teal-bordered aqua rectangles visible inside the dotted border at all times, with yellow stripes above and below.</li>
<li>As you scroll the element below the teal, aqua, and yellow regions should not move.</li>
<li>However, as you scroll the aqua-and-teal element, a cat surrounded by an orange dotted border should come into view, with its own associated nested scrolling mechanism.</li>
<li>As you scroll the aqua-and-teal element, the cat should move up and down with its border.</li>
<li>As you scroll the numbers inside the orange border, the cat should not move.</li>
<li>The aqua rectangles should be visible inside the dotted orange border.</li>
</ul>
<div class="backdrop">
<div class="outer"> 1
2
3
4
5
6
7
8
9
<div class="inner"> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20</div>
10
11
12
13
14
15
16
17
18
19
20</div>
</div>
</body>
</html>
|