Skip to content

Commit bbdfe8a

Browse files
author
Obexer Christoph
committed
added test for zIndex -1 element used as background
1 parent 9da3bd7 commit bbdfe8a

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

tests/cases/zindex/z-index4.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>z-index tests #4</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<script type="text/javascript" src="../../test.js"></script>
7+
<style type="text/css">
8+
div.lev1 {
9+
width: 250px;
10+
height: 70px;
11+
position: relative;
12+
border: 2px outset #669966;
13+
background-color: #ccffcc;
14+
padding-left: 5px;
15+
}
16+
div.background {
17+
position: absolute;
18+
top: 0;
19+
bottom: 0;
20+
width: 250px;
21+
background-color: #ffdddd;
22+
z-index: -1;
23+
}
24+
</style></head>
25+
26+
<body>
27+
<div class="lev1">
28+
<span>LEVEL #1</span>
29+
</div>
30+
<div class="background"></div>
31+
<div class="lev1">
32+
<span>LEVEL #1</span>
33+
</div>
34+
</body>
35+
</html>

0 commit comments

Comments
 (0)