servo/tests/ref/float_positioned_pseudo_stacking_context_ref.html
2015-10-05 11:27:32 -07:00

28 lines
334 B
HTML

<!DOCTYPE html>
<style>
html, body {
margin: 0; padding: 0;
}
div {
width: 100px;
height: 100px;
}
#a {
position: absolute;
top: 20px;
left: 20px;
background: red;
}
#b {
position: relative;
background: green;
}
</style>
<body>
<div id="a"></div>
<div id="b"></div>
</body>