summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/rtl/rtl-relative.html
blob: 9a49d08e506797e15b3673688ce8565cfe57390c (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
48
49
50
<html>
<head>
<style>
    body {
        direction: rtl;
        overflow: hidden;
    }

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

    #layer {
        transform:translateZ(0);
        position: relative;
        top: 50px;
        right: 50px;
        width: 100px;
        height: 100px;
        background-color: green;
    }

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

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