summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
blob: e61d8e914185ad2c500a6947678b5232f8d000ae (plain)
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
<style>
#test {
    overflow: hidden; /* Required to reproduce. */
}

#test::before {
    content: "";  /* Some content required to reproduce. */
    opacity: 0.999; /* Required to reproduce. */
    display: block;
    width: 100px;
    height: 100px;
    background-color: green;
}
</style>
<div id="test" style="display: none"></div>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script type="text/javascript">
    if (window.testRunner)
        testRunner.waitUntilDone();
    runAfterLayoutAndPaint(function() {
        document.getElementById("test").style.display = "block";
        if (window.testRunner)
            testRunner.notifyDone();
    });
</script>