Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / repaint-on-style-change.html
blob6c8257c06d859a3ac406761a657ffeb4d755479b
1 <!-- Based on fast/repaint/repaint-on-style-change.html -->
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <title>Test for repaint on style change</title>
6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
7 <script>
8 window.expectedPaintInvalidationObjects = [
9 "LayoutBlockFlow (positioned) DIV id='box'",
11 function paintInvalidationTest()
13 if (!window.testRunner)
14 return;
15 document.getElementById('box').style['background-color'] = 'green';
17 </script>
18 <style>
19 div {
20 background-color: magenta;
21 height: 100px;
22 width: 100px;
24 position: absolute;
25 top: 260px;
26 left: 260px;
28 </style>
29 </head>
30 <body onload="runPaintInvalidationTest()">
31 <div id='box'> </div>
32 </body>
33 </html>