summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/contents-opaque/overflow-hidden-child-layers.html
blob: 6a8e9eff57a8f8229fb6fcfd1f781d5c3f0b2bdb (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
    <style>
        .box {
            height: 100px;
            width: 100px;
            margin: 50px;
            background-color: blue;
            box-shadow: 0 0 20px black;
            overflow: hidden;
            transform: translateZ(0);
        }
        .child {
            position: relative;
            top: -30px;
            left: -30px;
            width: 300px;
            height: 300px;
            background-color: silver;
        }
    </style>
    <script type="text/javascript">
        if (window.testRunner)
            testRunner.dumpAsText();

        function doTest() {
            if (window.testRunner && window.internals)
                document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
        }
        window.addEventListener('load', doTest, false);
    </script>
</head>
<body>

    <div class="box">
        <div class="child">
        </div>
    </div>
    <pre id="layertree"></pre>
</body>
</html>