Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / margin.html
blobaa0cfa296b5c84d36bdcf63ddb0f1192b8cc5002
1 <!-- Based on fast/repaint/margin.html -->
2 <!DOCTYPE HTML>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='target'",
7 ];
8 function paintInvalidationTest()
10 // Margin change will visually move the content of the div.
11 // Should repaint the old position and the new position.
12 document.getElementById('target').style.margin = '20px';
14 window.onload = runPaintInvalidationTest;
15 </script>
16 <style>
17 body {
18 margin: 0;
20 div {
21 width: 100px;
22 height: 100px;
23 position: absolute;
24 background-color: green;
26 </style>
27 <div id="target"></div>