| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 #container { | 3 #container { |
| 4 position: fixed; | 4 position: fixed; |
| 5 top: 200px; | 5 top: 200px; |
| 6 left: 100px; | 6 left: 100px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 #block { | 9 #block { |
| 10 position: relative; | 10 position: relative; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 <div id="container"> | 24 <div id="container"> |
| 25 <div id="composited-non-stacking-context"> | 25 <div id="composited-non-stacking-context"> |
| 26 <div id="block"></div> | 26 <div id="block"></div> |
| 27 </div> | 27 </div> |
| 28 </div> | 28 </div> |
| 29 This test passes if the green block stays at the same place after repaint. | 29 This test passes if the green block stays at the same place after repaint. |
| 30 <script src="../../resources/run-after-layout-and-paint.js"></script> | 30 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 31 <script> | 31 <script> |
| 32 runAfterLayoutAndPaint(function() { | 32 runAfterLayoutAndPaint(function() { |
| 33 document.getElementById("container").style.top = "100px"; | 33 document.getElementById("container").style.top = "100px"; |
| 34 document.getElementById("block").style.top = "100px"; | 34 document.getElementById("block").style.top = "150px"; |
| 35 }, true); | 35 }, true); |
| 36 </script> | 36 </script> |
| OLD | NEW |