summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/372063-1-ref.html
blob: e7e5ebdd39dcfd5547e47a66c3dc05e37f1ba783 (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
<!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>
  <div class="pass">PASS</div>
</div>
</div>

<div class="test2">
<div class="pass">PASS</div>
</div>

<div class="test3">
<div class="fail">FAIL</div>
<div>
  <div class="pass">PASS</div>
</div>
</div>

<div class="test4">
<div class="pass">PASS</div>
</div>

<div class="test5">
<div class="pass">PASS</div>
</div>

<div class="test6">
<div class="pass">PASS</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>
 <div>
  <div class="pass">PASS</div>
 </div>
</div>
</div>

<div class="test2">
<div>
  <div class="pass">PASS</div>
</div>
</div>

<div class="test3">
<div>
  <div class="fail">FAIL</div>
</div>
<div>
 <div >
  <div class="pass">PASS</div>
 </div>
</div>
</div>

<div class="test4">
<div>
 <div class="pass">PASS</div>
</div>
</div>

<div class="test5">
<div>
 <div class="pass">PASS</div>
</div>
</div>

<div class="test6">
<div>
 <div class="pass">PASS</div>
</div>
</div>

</div>

</body>
</html>