layout: Make position: relative with non-auto z-index create a

stacking context.

Improves imgur.com and Fast Company articles.
This commit is contained in:
Patrick Walton 2015-08-18 15:24:35 -07:00
parent d48f6ffbad
commit fed904fff5
6 changed files with 48 additions and 6 deletions

View file

@ -0,0 +1,16 @@
<!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>