Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / background-resize-height.html
blob92a0982c2ffa9aa7d94856d0d4f4f91270c78172
1 <!-- Based on fast/repaint/background-resize-height.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
4 <script>
5 if (window.testRunner)
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;
37 </script>
38 <style>
39 #container {
40 position: absolute;
41 width: 600px;
42 height: 500px;
44 .test {
45 backface-visibility: hidden;
46 position: absolute;
47 width: 10%;
48 height: 8%;
50 .image {
51 background-image: url(../../../fast/repaint/resources/small-apple.jpg);
52 top: 0px;
54 .generated {
55 background-image: linear-gradient(blue, green);
56 top: 100px;
58 .size-cover {
59 background-size: cover;
60 left: 50px;
62 .size-contain {
63 background-size: contain;
64 left: 100px;
66 .fixed-height {
67 background-size: auto 30px;
68 left: 150px;
70 .percent-height {
71 background-size: auto 50%;
72 left: 200px;
74 .top {
75 background-position: left 0px top 10px;
76 left: 250px;
78 .bottom {
79 background-position: left 0px bottom 10px;
80 left: 300px;
82 .center {
83 background-position: center;
84 left: 350px;
86 .no-repeat {
87 background-repeat: no-repeat;
88 left: 400px;
90 .repeat-space {
91 background-repeat: space;
92 left: 450px;
94 .repeat-round {
95 background-repeat: round;
96 left: 500px;
98 </style>
99 <div id="container">
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>
122 </div>