summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/rtl/rtl-iframe-relative.html
blob: 7e4c3537f3ea8846cf49e524effeca817a3e8e53 (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
43
44
45
46
47
<html>
<head>
<style>
    body {
        overflow: hidden;
    }

    iframe {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 400px;
        height: 400px;
        border: none;
    }

    #indicator {
        position: absolute;
        top: 58px;
        left: 242px;
        width: 100px;
        height: 100px;
        background-color: red;
    }

    #layertree {
        position: absolute;
        top: 10000px;
        left: 0px;
    }
</style>
<script>
    function doTest() {
        if (window.testRunner) {
            document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
            testRunner.dumpAsTextWithPixelResults();
        }
    }
    window.addEventListener('load', doTest, false);
</script>
<body>
    <div id="indicator"></div>
    <iframe src="rtl-relative.html"></iframe>

    <pre id="layertree"></pre>
</body>
</html>