| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() { | 4 function repaintTest() { |
| 5 document.getElementById('target').style.width = '300px'; | 5 document.getElementById('target').style.width = '300px'; |
| 6 document.getElementById('target').style.height = '300px'; | 6 document.getElementById('target').style.height = '300px'; |
| 7 } | 7 } |
| 8 window.onload = runRepaintTest; | 8 window.onload = runRepaintTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { | 11 body { |
| 12 margin: 0; | 12 margin: 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 24 height: 100px; | 24 height: 100px; |
| 25 border: green 10px solid; | 25 border: green 10px solid; |
| 26 background-color: blue; | 26 background-color: blue; |
| 27 } | 27 } |
| 28 </style> | 28 </style> |
| 29 Tests invalidation when a box with border is resized within a clipping container
. | 29 Tests invalidation when a box with border is resized within a clipping container
. |
| 30 Passes if the result paint rects don't exceed the container. | 30 Passes if the result paint rects don't exceed the container. |
| 31 <div id="container"> | 31 <div id="container"> |
| 32 <div id="target"></div> | 32 <div id="target"></div> |
| 33 </div> | 33 </div> |
| OLD | NEW |