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