| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 div { | 3 div { |
| 4 position: absolute; | 4 position: absolute; |
| 5 transform: skew(-45deg); | 5 transform: skew(-45deg); |
| 6 transform-origin: left top; | 6 transform-origin: left top; |
| 7 top: 50px; | 7 top: 50px; |
| 8 left: 500px; | 8 left: 500px; |
| 9 height: 500px; | 9 height: 500px; |
| 10 } | 10 } |
| 11 #skewed { | 11 #skewed { |
| 12 width: 200px; | 12 width: 200px; |
| 13 background-color: green; | 13 background-color: green; |
| 14 } | 14 } |
| 15 #indicator { |
| 16 width: 200px; |
| 17 background-color: red; |
| 18 } |
| 15 </style> | 19 </style> |
| 16 Tests paint invalidation when a skewed element is resized. Passes if there is no
red. | 20 Tests paint invalidation when a skewed element is resized. Passes if there is no
red. |
| 21 <div id="indicator"></div> |
| 17 <div id="skewed"></div> | 22 <div id="skewed"></div> |
| 18 | 23 |
| OLD | NEW |