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