summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/layer-content-visibility-change.html
blob: f7f4fc54d5ad8ca6bfeb3f2ef9c9c7f11a3db10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div style="position: relative;">
    <div style="width: 100px; height: 100px; background-color: red;"></div>
    <div style="visibility: hidden; position: absolute; top: 0;">
        <div id="inner" style="width: 100px; height: 100px; background-color: green;"></div>
    </div>
</div>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
    if (window.testRunner)
        testRunner.waitUntilDone();
    runAfterLayoutAndPaint(function() {
        document.getElementById("inner").style.visibility = "visible";
        if (window.testRunner)
            testRunner.notifyDone();
    });
</script>