blob: e222669b7f974c9f18fc7643492179fa41f3a780 (
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
|
<!DOCTYPE html>
<html>
<head>
<style>
body {
overflow: hidden;
}
.flipped {
margin: 10px;
height: 200px;
width: 250px;
background-color: silver;
-webkit-writing-mode: vertical-rl;
}
.box {
height: 100px;
width: 100px;
margin: 10px 20px;
background-color: blue;
}
.composited {
transform: translateZ(0);
}
.block {
width: 20px;
height: 80px;
margin: 5px;
background-color: green;
}
#layers {
opacity: 0; /* hide from pixel result */
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
function dumpLayers()
{
if (window.testRunner)
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
}
window.addEventListener('load', dumpLayers, false);
</script>
</head>
<body>
<div class="composited flipped">
<div class="composited box">
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</div>
</div>
<pre id="layers">Layer tree goes here in DRT</pre>
</body>
</html>
|