<html>
<head>
    <script type="text/javascript">
        if (window.testRunner)
            testRunner.waitUntilDone();
        function runTest()
        {
            document.getElementById("block").style.height = "100px";
            document.getElementById("inline").innerText = "is invisible";
            if (window.testRunner)
                testRunner.notifyDone();
        }
    </script>
</head>
<body onload="setTimeout(runTest, 0)">
    <div style="visibility: hidden; position: relative;">
        <span id="inline">Invisible text</span>
    </div>
    <div style="visibility: hidden; position: relative;">
        <div id="block" style="height: 50px;"></div>
    </div>
</body>
</html>
