Skip to content

Commit fd4fd95

Browse files
committed
Test case for static position inside position relative
1 parent 10b4082 commit fd4fd95

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

tests/cases/zindex/z-index11.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>static position inside position relative</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+
background: #9bfff8;
17+
position: relative;
18+
}
19+
20+
#div2 {
21+
background: #7cb659;
22+
display: table;
23+
}
24+
25+
#div3 {
26+
float:left;
27+
}
28+
29+
</style>
30+
31+
</head>
32+
<body>
33+
<div id="div1">
34+
<h1>Division Element #1</h1>
35+
<code>position: relative;</code>
36+
<div id="div2">
37+
<h1>Division Element #2</h1>
38+
<code>position: static;</code>
39+
<div id="div3">
40+
<div>
41+
<h1>Division Element #3</h1>
42+
<code>float: left;</code>
43+
</div>
44+
</div>
45+
</div>
46+
</div>
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)