<body style="margin:0px">
    <div style="width: 100px; height: 100px; position: absolute; left: 100px; top: 100px; background-color: red">FAIL</div>
    <div id="outer" style="opacity: 0.5; margin: 100px">
        <div style="position: relative; background-color: green; width: 100px; height: 100px">PASS</div>
    </div>
You should see a 100x100 green rect at 100x100 above with the word PASS.  There should be no red on this page.  This is a test case for https://bugs.webkit.org/show_bug.cgi?id=25252

    <script>
        function doTest() {
            document.getElementById("outer").style.opacity = 1.0;
            if (window.layoutTestController)
                layoutTestController.notifyDone();
        }
        if (window.layoutTestController)
            layoutTestController.waitUntilDone();
        // Delay until after the first paint
        setTimeout(doTest, 0);
    </script>
</body>
