1 <!-- Based on fast/repaint/obscured-background-no-repaint.html -->
4 <script src=
"../../../fast/repaint/../../resources/run-after-layout-and-paint.js"></script>
5 <script src=
"resources/paint-invalidation-test.js"></script>
6 <style type=
"text/css">
12 background-image: url
(../../../fast/repaint/resources/animated.gif)
15 background-color: green
;
22 background-image: url
(../../../fast/repaint/resources/animated.gif);
23 background-repeat: no-repeat
;
24 background-position: center
;
28 background-color: green
;
36 background-image: url
(../../../fast/repaint/resources/animated.gif)
42 background-color: red
;
43 background-repeat: no-repeat
;
44 background-position: center
;
45 background-image: url
(../../../fast/repaint/resources/animated.gif)
49 // Test that obscured animated gif does not trigger repaints.
50 if (window
.testRunner
) {
51 testRunner
.waitUntilDone();
52 testRunner
.dumpAsText();
54 window
.testIsAsync
= true;
55 window
.expectedPaintInvalidationObjects
= [
57 function paintInvalidationTest()
59 runAfterLayoutAndPaint(finishPaintInvalidationTest
);
63 if (!window
.testRunner
|| !window
.internals
)
66 var img
= new Image();
67 img
.onload
= runPaintInvalidationTest
;
68 img
.src
= "../../../fast/repaint/resources/animated.gif";
72 <body onload=
"start()">
86 <img src=
"../../../fast/repaint/resources/apple.jpg">
93 <img src=
"../../../fast/repaint/resources/apple.jpg">