summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/geometry/require-own-backing-recalc-order.html
blob: c4c304a89c2f38df2e4e4a408d90db13e6f4417a (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<style>
#clipping-repaint-container {
    transform: translateZ(0);
    overflow: hidden;
    position: absolute;
    left: 49px;
    top: 49px;
    width: 348px;
    height: 348px;
    border: black 1px solid;
}

#non-repaint-container-compositing-layer {
    -webkit-perspective: 1px;
    position: absolute;
    left: 49px;
    top: 49px;
    width: 248px;
    height: 248px;
    border: red 1px solid;
}

#painting-layer {
    display: none;
    position: absolute;
    left: 49px;
    top: 49px;
    width: 148px;
    height: 148px;
    border: green 1px solid;
}

#compositing-child1 {
    transform: translateZ(-1px);
    position: absolute;
    left: 48px;
    top: 48px;
    width: 48px;
    height: 48px;
    border: blue 2px solid;
}

#compositing-child2 {
    transform: translateZ(-1px);
    position: absolute;
    left: 49px;
    top: 49px;
    width: 48px;
    height: 48px;
    border: blue 1px solid;
}
</style>

<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
    if (window.testRunner)
        testRunner.waitUntilDone();

    window.onload = function() {
        var paintingLayer = document.getElementById("painting-layer");
        paintingLayer.style.display = "block";
        runAfterLayoutAndPaint(function() {
            var compositingChild2 = document.getElementById("compositing-child2");
            compositingChild2.style.transform = "translateZ(0)";
            if (window.testRunner)
                testRunner.notifyDone();
        });
    }
</script>

<div id="clipping-repaint-container">
    <div id="non-repaint-container-compositing-layer">
        <div id="painting-layer">
            <div id="compositing-child1">
            </div>
            <div id="compositing-child2">
            </div>
        </div>
    </div>
</div>