Stacking Order Tests

The following tests examine stacking order of positioned vs. non-positioned elements when no z-index is specified.

#test1

.a {}
.b {}
div class="a"
div class="b"

#test2

.a {}
.b {position:absolute; top:0; left:0;}
div class="a"
div class="b"

#test3

.a {position:absolute; top:0; left:0;}
.b {}
div class="a"
div class="b"

#test4

.a {position:absolute; top:0; left:0;}
.b {position:absolute; top:0; left:0;}
div class="a"
div class="b"

#test5

.a {position:relative;}
.b {position:absolute; top:0; left:0;}
div class="a"
div class="b"

#test6

.a {position:absolute; top:0; left:0;}
.b {position:relative;}
div class="a"
div class="b"

#test7

.a {}
.b {position:relative; top:-.75em;}
div class="a"
div class="b"

#test8

.a {position:relative; top:.75em;}
.b {}
div class="a"
div class="b"

#test9

.a {position:absolute; top:0; left:0;}
.b {position:relative;}
.c {}
div class="a"
div class="a"
div class="b"
div class="c"

#test10

.a {position:absolute; top:0; left:0;}
.b {}
.c {position:relative;}
div class="a"
div class="a"
div class="b"
div class="c"