1 <!-- Based on fast/repaint/resize-skewed.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow (positioned) DIV id='skewed'",
8 function paintInvalidationTest() {
9 document
.getElementById('skewed').style
.width
= '200px';
11 onload
= runPaintInvalidationTest
;
16 transform: skew(-
45deg);
17 transform-origin: left top;
24 background-color: green;
28 width:
198px; /* Narrower than the target to avoid anti-alias effect. */
29 background-color: red;
32 Tests paint invalidation when a skewed element is resized. Passes if there is no red.
33 <div id=
"indicator"></div>
34 <div id=
"skewed"></div>