Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / repaint / fixed-pos-with-abs-pos-child-scroll.html
blob6c61e313d109dfb1b60bd5af5b9cb13e7323a765
1 <!doctype html>
2 <html>
4 <head>
5 <script src="../../resources/run-after-layout-and-paint.js"></script>
7 <style>
8 #fixed {
9 position: fixed;
10 bottom: 30px;
11 right: 0px;
13 #abs {
14 position: absolute;
15 bottom: 0px;
16 right: 0px;
17 height: 90px;
18 width: 360px;
19 background: yellow;
21 </style>
23 <script>
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.waitUntilDone();
29 if (window.internals) {
30 window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
33 window.onload = function() {
34 if (window.internals)
35 window.internals.startTrackingRepaints(document);
37 window.scrollTo(0, 500);
39 runAfterLayoutAndPaint(function() {
40 window.scrollTo(0, 0);
42 runAfterLayoutAndPaint(function() {
43 if (window.internals)
44 document.getElementById('layers').textContent =
45 window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
47 if (window.testRunner)
48 testRunner.notifyDone();
49 });
50 });
52 </script>
53 </head>
55 <body style="height: 4000px;">
56 <div id="fixed">
57 <div id="abs">
58 Hi!
59 </div>
60 </div>
61 <pre id="layers"></pre>
62 </body>
64 </html>