blob: 95e85dc8c19afbe27a8105346bdeb8158812cedb (
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
|
<!DOCTYPE html>
<style>
.fixed {
position: fixed;
}
.overflow {
width: 100%;
height: 100%;
overflow-y: scroll;
}
.yellow {
left: 200px;
width: 100px;
height: 100px;
background-color: yellow;
}
.blue {
width: 100px;
height: 1000px;
background-color: blue;
}
</style>
<div class="overflow fixed">
<div class="yellow fixed"></div>
<div class="blue"></div>
</div>
<pre></pre>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner && window.internals) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
internals.settings.setPreferCompositingToLCDTextEnabled(true);
}
runAfterLayoutAndPaint(function() {
if (window.testRunner)
document.querySelector('pre').textContent = window.internals.layerTreeAsText(document);
}, true);
</script>
|