summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation/translatez-removed.html
blob: 18536766b5a2dfb0cc371a23e7f1e1d2fe0f6979 (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
<!DOCTYPE html>
<style>
.box {
    height: 200px;
    width: 200px;
    margin: 10px;
    padding: 5px;
    background-color: blue;
}

.composited {
    transform: translateZ(0);
}

#trigger {
    width: 20px;
    height: 20px;
    background-color: silver;
}
</style>
<script>
if (window.testRunner)
    window.testRunner.dumpAsText();

function doTest()
{
    document.getElementById('test').classList.remove('composited');
    if (window.testRunner)
        document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
}
window.addEventListener('load', doTest, false);
</script>
<!-- This test div starts out with a 3d transform, but should be
     de-promoted from a composited layer before the test completes. -->
<div id="test" class="composited box"></div>
<pre id="layers">Layer tree appears here in DRT.</pre>