| OLD | NEW |
| 1 <!-- Based on fast/repaint/padding-border-keeping-border-box-and-content-box.htm
l --> | 1 <!-- Based on fast/repaint/padding-border-keeping-border-box-and-content-box.htm
l --> |
| 2 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
| 3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 window.expectedPaintInvalidationObjects = [ | |
| 6 "LayoutBlockFlow (positioned) DIV id='target'", | |
| 7 ]; | |
| 8 function paintInvalidationTest() | 5 function paintInvalidationTest() |
| 9 { | 6 { |
| 10 // Though neither border box nor content box changes, should full repaint | 7 // Though neither border box nor content box changes, should full repaint |
| 11 // because the border width changes. | 8 // because the border width changes. |
| 12 var target = document.getElementById('target'); | 9 var target = document.getElementById('target'); |
| 13 target.style.padding = '20px'; | 10 target.style.padding = '20px'; |
| 14 target.style.borderWidth = '20px'; | 11 target.style.borderWidth = '20px'; |
| 15 } | 12 } |
| 16 window.onload = runPaintInvalidationTest; | 13 window.onload = runPaintInvalidationTest; |
| 17 </script> | 14 </script> |
| 18 <style> | 15 <style> |
| 19 body { | 16 body { |
| 20 margin: 0; | 17 margin: 0; |
| 21 } | 18 } |
| 22 div { | 19 div { |
| 23 width: 100px; | 20 width: 100px; |
| 24 height: 100px; | 21 height: 100px; |
| 25 padding: 40px; | 22 padding: 40px; |
| 26 position: absolute; | 23 position: absolute; |
| 27 background-color: green; | 24 background-color: green; |
| 28 border-color: blue; | 25 border-color: blue; |
| 29 border-style: solid; | 26 border-style: solid; |
| 30 border-width: 0; | 27 border-width: 0; |
| 31 } | 28 } |
| 32 </style> | 29 </style> |
| 33 <div id="target"></div> | 30 <div id="target"></div> |
| OLD | NEW |