| OLD | NEW |
| 1 <!-- Based on fast/repaint/border-radius-with-outline.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
| 3 <script> | 4 <script> |
| 4 <!-- Should full repaint because the actual border radius changes. --> | 5 <!-- Should full repaint because the actual border radius changes. --> |
| 5 function repaintTest() | 6 window.expectedPaintInvalidationObjects = [ |
| 7 "LayoutBlockFlow (positioned) DIV id='target'", |
| 8 ]; |
| 9 function paintInvalidationTest() |
| 6 { | 10 { |
| 7 document.getElementById('target').style.width = '200px'; | 11 document.getElementById('target').style.width = '200px'; |
| 8 } | 12 } |
| 9 window.onload = runRepaintTest; | 13 window.onload = runPaintInvalidationTest; |
| 10 </script> | 14 </script> |
| 11 <style> | 15 <style> |
| 12 body { | 16 body { |
| 13 margin: 0; | 17 margin: 0; |
| 14 } | 18 } |
| 15 div { | 19 div { |
| 16 position: absolute; | 20 position: absolute; |
| 17 width: 80px; | 21 width: 80px; |
| 18 height: 200px; | 22 height: 200px; |
| 19 top: 100px; | 23 top: 100px; |
| 20 left: 100px; | 24 left: 100px; |
| 21 background-color: green; | 25 background-color: green; |
| 22 border-radius: 50px; | 26 border-radius: 50px; |
| 23 outline: 5px solid green; | 27 outline: 5px solid green; |
| 24 outline-offset: 50px; | 28 outline-offset: 50px; |
| 25 } | 29 } |
| 26 </style> | 30 </style> |
| 27 <div id="target"></div> | 31 <div id="target"></div> |
| OLD | NEW |