blob: fdaff493d7ec18510e1aee3bd79404c9b501ee4a (
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
|
<html>
<head>
<style>
div.box {
height: 100px;
width:100px;
background-color:red;
display: -moz-box;
display: -webkit-box;
display: box;
position: relative;
}
div.block {
width: 100px;
height: 100px;
bottom: 0px;
right: 0px;
background-color: green;
position: absolute;
}
</style>
</head>
<body>
<p>You should see a 100x100 green square below. If you see any red, then the test has failed. This test is ensuring
that boxes can act as containing blocks for positioned elements.
</p>
<div class="box"><div class="block"></div></div>
</body>
</html>
|