blob: 0872339e38261cf77c8f16ae8c01f8286a095aac (
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Testcase for bug 372063</title>
<style type="text/css">
html,body {
color:black; background-color: white; font-size:16px; padding:0; margin:0;
}
div {color:white; font-size: xx-large; top: 0; left: 0; position: absolute; width: 100px; height:100px;}
.pass { background:green; }
.fail { background: red; }
.test1 { top:0; }
.test2 { top:150px; }
.test3 { top:300px; }
.test4 { top:450px; }
.test4b{ left:-100px;}
.test4b div { top:100px; left:100px;}
.test4c{ left:-100px;}
.test4c div div { top:100px; left:100px;}
.test5 { top:600px; }
.test6 { top:750px; }
.test5b , .test6b{ left:-100px; }
.test5b div , .test6b div { left:100px;}
.test5c , .test6c { left:-100px;}
.test5c div div , .test6c div div { left:100px;}
#test_inherit { left: 400px; height:auto; bottom:0; }
.inherit { clip:inherit; }
</style>
</head>
<body>
<div class="test1">
<div class="fail">FAIL</div>
<div style="clip:rect(auto auto auto auto);">
<div class="pass">PASS</div>
</div>
</div>
<div class="test2">
<div class="pass">PASS</div>
<div style="clip:rect(0 0 0 0);">
<div class="fail">FAIL</div>
</div>
</div>
<div class="test3">
<div class="fail">FAIL</div>
<div style="clip:rect(0,200px,200px,0);">
<div class="pass">PASS</div>
</div>
</div>
<div class="test4">
<div class="pass">PASS</div>
<div class="test4b" style="clip:rect(auto auto auto auto);">
<div class="fail">FAIL</div>
</div>
</div>
<div class="test5">
<div class="fail">FAIL</div>
<div class="test5b" style="clip:auto;">
<div class="pass">PASS</div>
</div>
</div>
<div class="test6">
<div class="fail">FAIL</div>
<div class="test6b" style="">
<div class="pass">PASS</div>
</div>
</div>
<!-- same as above but with intermediary div with clip:inherit -->
<div id="test_inherit">
<div class="test1">
<div class="fail">FAIL</div>
<div style="clip:rect(auto auto auto auto);">
<div class="inherit">
<div class="pass">PASS</div>
</div>
</div>
</div>
<div class="test2">
<div class="inherit">
<div class="pass">PASS</div>
</div>
<div style="clip:rect(0 0 0 0);">
<div class="inherit">
<div class="fail">FAIL</div>
</div>
</div>
</div>
<div class="test3">
<div class="inherit">
<div class="fail">FAIL</div>
</div>
<div style="clip:rect(0,200px,200px,0);">
<div class="inherit">
<div class="pass">PASS</div>
</div>
</div>
</div>
<div class="test4">
<div class="inherit">
<div class="pass">PASS</div>
</div>
<div class="test4c" style="clip:rect(auto auto auto auto);">
<div class="inherit">
<div class="fail">FAIL</div>
</div>
</div>
</div>
<div class="test5">
<div class="inherit">
<div class="fail">FAIL</div>
</div>
<div class="test5c" style="clip:auto;">
<div class="inherit">
<div class="pass">PASS</div>
</div>
</div>
</div>
<div class="test6">
<div class="inherit">
<div class="fail">FAIL</div>
</div>
<div class="test6c" style="">
<div class="inherit">
<div class="pass">PASS</div>
</div>
</div>
</div>
</div>
</body>
</html>
|