| OLD | NEW |
| 1 <!-- Based on fast/repaint/resize-skewed.html --> | 1 <!-- Based on fast/repaint/resize-skewed.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 window.expectedPaintInvalidationObjects = [ | |
| 6 "LayoutBlockFlow (positioned) DIV id='skewed'", | |
| 7 ]; | |
| 8 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
| 9 document.getElementById('skewed').style.width = '200px'; | 6 document.getElementById('skewed').style.width = '200px'; |
| 10 } | 7 } |
| 11 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
| 12 </script> | 9 </script> |
| 13 <style> | 10 <style> |
| 14 div { | 11 div { |
| 15 position: absolute; | 12 position: absolute; |
| 16 transform: skew(-45deg); | 13 transform: skew(-45deg); |
| 17 transform-origin: left top; | 14 transform-origin: left top; |
| 18 top: 50px; | 15 top: 50px; |
| 19 left: 500px; | 16 left: 500px; |
| 20 height: 500px; | 17 height: 500px; |
| 21 } | 18 } |
| 22 #skewed { | 19 #skewed { |
| 23 width: 100px; | 20 width: 100px; |
| 24 background-color: green; | 21 background-color: green; |
| 25 } | 22 } |
| 26 #indicator { | 23 #indicator { |
| 27 margin-left: 1px; | 24 margin-left: 1px; |
| 28 width: 198px; /* Narrower than the target to avoid anti-alias effect. */ | 25 width: 198px; /* Narrower than the target to avoid anti-alias effect. */ |
| 29 background-color: red; | 26 background-color: red; |
| 30 } | 27 } |
| 31 </style> | 28 </style> |
| 32 Tests paint invalidation when a skewed element is resized. Passes if there is no
red. | 29 Tests paint invalidation when a skewed element is resized. Passes if there is no
red. |
| 33 <div id="indicator"></div> | 30 <div id="indicator"></div> |
| 34 <div id="skewed"></div> | 31 <div id="skewed"></div> |
| 35 | 32 |
| OLD | NEW |