Skip to content

Commit 1d03a5f

Browse files
committed
z-index test case for negative z-indexes
1 parent ea7d6b4 commit 1d03a5f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

tests/cases/zindex/z-index12.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
4+
<html>
5+
<head>
6+
<title>Negative z-indexes</title>
7+
<script type="text/javascript" src="../../test.js"></script>
8+
9+
<style type="text/css">
10+
html {
11+
padding: 20px;
12+
font: 12px/20px Arial, sans-serif;
13+
}
14+
#div1 {
15+
padding: 10px;
16+
position: relative;
17+
}
18+
19+
#div2 {
20+
background: #7cb659;
21+
position: absolute;
22+
z-index:-999998;
23+
left: 0px;
24+
top: 0px;
25+
}
26+
27+
#div3 {
28+
background: #b69f1a;
29+
position: absolute;
30+
z-index: -999999;
31+
left: 0px;
32+
top: 0px;
33+
}
34+
</style>
35+
</head>
36+
<body>
37+
<div id="div1">
38+
<div id="div2">
39+
<h1>Div Element #2</h1>
40+
<div id="div3">
41+
<div>
42+
<h1>Div Element #3</h1>
43+
</div>
44+
</div>
45+
</div>
46+
</div>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)