Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / fixed-scroll-in-empty-root-layer.html
blob95bf034f9243e0d94930d5ff43ef1cd137b8c561
1 <!-- Based on compositing/overflow/fixed-scroll-in-empty-root-layer.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV",
7 "LayoutBlockFlow (positioned) DIV",
8 ];
9 function paintInvalidationTest() {
10 window.scrollBy(0, 200);
12 onload = runPaintInvalidationTest;
13 </script>
14 <body style="height: 2000px">
15 Tests invalidation of fixed element when scrolled in a page with empty root layer. Passes if there is no red.
16 <div style="
17 position: fixed;
18 top: 50px;
19 left: 0;
20 width: 100px;
21 height: 100px;
22 background: green">
23 </div>
24 <!-- This div makes all of the contents of the page be in sublayers of the root layer, so root layer is empty. -->
25 <div style="
26 position: absolute;
27 z-index: -1;
28 backface-visibility: hidden;
29 top: 250px;
30 left: 0;
31 background-color: red;
32 width: 100px;
33 height: 100px">
34 </div>
35 </body>