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