1 <!-- Based on fast/repaint/background-resize-height.html -->
3 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
6 testRunner
.dumpAsTextWithPixelResults();
7 window
.expectedPaintInvalidationObjects
= [
8 "LayoutBlockFlow (positioned) DIV id='container'",
9 "LayoutBlockFlow (positioned) DIV class='test image'",
10 "LayoutBlockFlow (positioned) DIV class='test image size-cover'",
11 "LayoutBlockFlow (positioned) DIV class='test image size-contain'",
12 "LayoutBlockFlow (positioned) DIV class='test image fixed-height'",
13 "LayoutBlockFlow (positioned) DIV class='test image percent-height'",
14 "LayoutBlockFlow (positioned) DIV class='test image top'",
15 "LayoutBlockFlow (positioned) DIV class='test image bottom'",
16 "LayoutBlockFlow (positioned) DIV class='test image center'",
17 "LayoutBlockFlow (positioned) DIV class='test image no-repeat'",
18 "LayoutBlockFlow (positioned) DIV class='test image repeat-space'",
19 "LayoutBlockFlow (positioned) DIV class='test image repeat-round'",
20 "LayoutBlockFlow (positioned) DIV class='test generated'",
21 "LayoutBlockFlow (positioned) DIV class='test generated cover'",
22 "LayoutBlockFlow (positioned) DIV class='test generated contain'",
23 "LayoutBlockFlow (positioned) DIV class='test generated fixed-height'",
24 "LayoutBlockFlow (positioned) DIV class='test generated percent-height'",
25 "LayoutBlockFlow (positioned) DIV class='test generated top'",
26 "LayoutBlockFlow (positioned) DIV class='test generated bottom'",
27 "LayoutBlockFlow (positioned) DIV class='test generated center'",
28 "LayoutBlockFlow (positioned) DIV class='test generated no-repeat'",
29 "LayoutBlockFlow (positioned) DIV class='test generated repeat-space'",
30 "LayoutBlockFlow (positioned) DIV class='test generated repeat-round'",
32 function paintInvalidationTest()
34 document
.getElementById('container').style
.height
= '550px';
36 window
.onload
= runPaintInvalidationTest
;
45 backface-visibility: hidden;
51 background-image: url(../../../fast/repaint/resources/small-apple.jpg);
55 background-image: linear-gradient(blue, green);
59 background-size: cover;
63 background-size: contain;
67 background-size: auto
30px;
71 background-size: auto
50%;
75 background-position: left
0px top
10px;
79 background-position: left
0px bottom
10px;
83 background-position: center;
87 background-repeat: no-repeat;
91 background-repeat: space;
95 background-repeat: round;
100 <div class=
"test image"></div>
101 <div class=
"test image size-cover"></div>
102 <div class=
"test image size-contain"></div>
103 <div class=
"test image fixed-height"></div>
104 <div class=
"test image percent-height"></div>
105 <div class=
"test image top"></div>
106 <div class=
"test image bottom"></div>
107 <div class=
"test image center"></div>
108 <div class=
"test image no-repeat"></div>
109 <div class=
"test image repeat-space"></div>
110 <div class=
"test image repeat-round"></div>
111 <div class=
"test generated"></div>
112 <div class=
"test generated cover"></div>
113 <div class=
"test generated contain"></div>
114 <div class=
"test generated fixed-height"></div>
115 <div class=
"test generated percent-height"></div>
116 <div class=
"test generated top"></div>
117 <div class=
"test generated bottom"></div>
118 <div class=
"test generated center"></div>
119 <div class=
"test generated no-repeat"></div>
120 <div class=
"test generated repeat-space"></div>
121 <div class=
"test generated repeat-round"></div>