| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/padding-keeping-content-size.html --> | |
| 2 <!DOCTYPE HTML> | |
| 3 <script src="resources/paint-invalidation-test.js"></script> | |
| 4 <script> | |
| 5 function paintInvalidationTest() | |
| 6 { | |
| 7 // Both targets' visual size expand. Should full repaint. | |
| 8 document.getElementById('target1').style.padding = '20px'; | |
| 9 document.getElementById('target2').style.padding = '20px'; | |
| 10 } | |
| 11 window.onload = runPaintInvalidationTest; | |
| 12 </script> | |
| 13 <style> | |
| 14 body { | |
| 15 margin: 0; | |
| 16 } | |
| 17 .outer { | |
| 18 width: 100px; | |
| 19 height: 100px; | |
| 20 position: absolute; | |
| 21 background-color: green; | |
| 22 } | |
| 23 #target2 { | |
| 24 top: 200px; | |
| 25 } | |
| 26 .inner { | |
| 27 width: 100%; | |
| 28 height: 100%; | |
| 29 background-color: yellow; | |
| 30 } | |
| 31 </style> | |
| 32 <div id="target1" class="outer"></div> | |
| 33 <div id="target2" class="outer"><div class="inner"></div></div> | |
| OLD | NEW |