Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / absolute-margin-change-repaint.html
blob5e0a94ff77c8e2df3494e9207808114225504cc4
1 <!-- Based on fast/repaint/absolute-margin-change-repaint.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <style>
5 body {
6 margin: 0;
8 #container {
9 position: relative;
10 top: 40px;
11 width: 200px;
12 height: 400px;
14 #test {
15 position: absolute;
16 background-color: green;
17 width: 100px;
18 height: 100px;
20 </style>
21 <script>
22 window.expectedPaintInvalidationObjects = [
23 "LayoutBlockFlow (positioned) DIV id='test'",
25 function paintInvalidationTest()
27 document.getElementById("test").style['margin-top'] = '20px';
29 window.onload = runPaintInvalidationTest;
30 </script>
31 <div id="container">
32 <div id="test"></div>
33 </div>
34 Tests the repainting of absolute element when margin-top changes.