Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 147 lines (124 sloc) 3.864 kb
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
<!DOCTYPE html>

<html>
<head>
    <title>Tests for z-index</title>

    <style type="text/css">

        html { -pie-load-path: "../build"; }

        html {
            margin: 0;
            padding: 0;
        }
        body {
            background: url(background2.gif);
            padding: 20px 50% 20px 0;
        }

        .test {
            behavior: url(../build/PIE.htc);
            padding: 20px;
            margin: 0 20px 20px;
            background: #EEE;
            -moz-border-radius: 1em;
            border-radius: 1em;
            -moz-box-shadow: 0 0 10px;
            box-shadow: 0 0 10px;
            white-space: nowrap;
        }

        .wrapper {
            padding: 20px 0;
            margin: 0 20px 20px;
            background: url(background1.gif);
            border: 1px solid;
        }

        .clearer {
            clear: both;
        }

        #test1 {
            position: static;
        }
        #test2 {
            position: relative;
        }
        #test3 {
            position: absolute;
            top: 20px;
            right: 0;
        }

        #test4 {
            position: static;
            float: left;
        }
        #test5 {
            position: relative;
            float: left;
            clear: left;
        }

        #test6 {
            position: static;
            z-index: 1;
        }
        #test7 {
            position: relative;
            z-index: 1;
        }
        #test8 {
            position: absolute;
            top: 100px;
            right: 0;
            z-index: 1;
        }

        #test9 {
            position: static;
        }
        #test10 {
            position: relative;
        }
        #test11 {
            position: absolute;
            top: 180px;
            right: 0;
        }
        #test9 {
            position: static;
            zoom: 1;
        }

        #test13 {
            position: static;
            z-index: 1;
        }
        #test14 {
            position: relative;
            z-index: 1;
        }
        #test15 {
            position: absolute;
            top: 320px;
            right: 0;
            z-index: 1;
        }
        #test16 {
            position: static;
            z-index: 1;
            zoom: 1;
        }




    </style>
</head>
<body>

    <div class="test" id="test1">position:static, no z-index</div>
    <div class="test" id="test2">position:relative, no z-index</div>
    <div class="test" id="test3">position:absolute, no z-index</div>

    <div class="test" id="test4">float:left, position:static, no z-index</div>
    <div class="test" id="test5">float:left, position:relative, no z-index</div>

    <div class="clearer"></div>

    <div class="test" id="test6">position: static, z-index: 1</div>
    <div class="test" id="test7">position: relative, z-index: 1</div>
    <div class="test" id="test8">position: absolute, z-index: 1</div>

    <div id="test9" class="wrapper"><div class="test">Nested within position: static, no z-index</div></div>
    <div id="test10" class="wrapper"><div class="test">Nested within position: relative, no z-index</div></div>
    <div id="test11" class="wrapper"><div class="test">Nested within position: absolute, no z-index</div></div>
    <div id="test12" class="wrapper"><div class="test">Nested within position: static, no z-index, hasLayout</div></div>

    <div id="test13" class="wrapper"><div class="test">Nested within position: static, z-index: 1</div></div>
    <div id="test14" class="wrapper"><div class="test">Nested within position: relative, z-index: 1</div></div>
    <div id="test15" class="wrapper"><div class="test">Nested within position: absolute, z-index: 1</div></div>
    <div id="test16" class="wrapper"><div class="test">Nested within position: static, z-index: 1, hasLayout</div></div>

</body>
</html>
Something went wrong with that request. Please try again.