Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / fixed-position-descendant-paint-offset.html
blobff6bea9261035e59a4909cfbc318e281b51a0a62
1 <!DOCTYPE html>
2 <style>
3 #container {
4 position: fixed;
5 top: 200px;
6 left: 100px;
9 #block {
10 position: relative;
11 width: 100px;
12 height: 100px;
13 background-color: green;
15 </style>
16 <div id="container">
17 <div id="block"></div>
18 </div>
19 This test passes if the green block stays at the same place after repaint.
20 <script src="../../resources/run-after-layout-and-paint.js"></script>
21 <script>
22 runAfterLayoutAndPaint(function() {
23 document.getElementById("container").style.top = "100px";
24 document.getElementById("block").style.top = "100px";
25 }, true);
26 </script>