servo/tests/ref/position_relative_stacking_context_ref.html
Patrick Walton fed904fff5 layout: Make position: relative with non-auto z-index create a
stacking context.

Improves imgur.com and Fast Company articles.
2015-08-22 12:22:33 -07:00

16 lines
197 B
HTML

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