Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / padding-border-keeping-border-box-and-content-box.html
blobfbb03b817493887f0f89626b8927cfb1f85830c9
1 <!-- Based on fast/repaint/padding-border-keeping-border-box-and-content-box.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 // Though neither border box nor content box changes, should full repaint
11 // because the border width changes.
12 var target = document.getElementById('target');
13 target.style.padding = '20px';
14 target.style.borderWidth = '20px';
16 window.onload = runPaintInvalidationTest;
17 </script>
18 <style>
19 body {
20 margin: 0;
22 div {
23 width: 100px;
24 height: 100px;
25 padding: 40px;
26 position: absolute;
27 background-color: green;
28 border-color: blue;
29 border-style: solid;
30 border-width: 0;
32 </style>
33 <div id="target"></div>