Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / backgroundSizeRepaint.html
blob01893668432c851e7aa44aa892b59ce630210647
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en">
4 <head>
5 <style type="text/css">
6 div.test { width: 200px; height: 120px; border: 1px solid blue; padding: 10px; }
7 </style>
8 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
9 <script type="text/javascript">
10 function repaintTest()
12 document.getElementById('a').style.height = '40px';
13 document.getElementById('b').style.height = '60px';
15 </script>
16 </head>
17 <body onload="runRepaintTest();">
18 <p><b>BUG ID:</b> <a href="https://bugs.webkit.org/show_bug.cgi?id=8467">Bugzilla bug 8467</a> Block with percentage background-size doesn't repaint properly when it grows</p>
20 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
21 The boxes will resize, and their background images will repaint correctly maintaining the set background-size.
22 </p>
24 <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
25 The boxes will resize, but the background images will leave artifacts on the sides.
26 </p>
28 <div class="test">
29 <div style="background-image:url(resources/apple.jpg); -webkit-background-size: auto 100%;">
30 <div id="a" style="height: 60px; margin: 10px; background-color:teal; opacity:0.5;"></div>
31 </div>
32 </div>
33 <br>
34 <div class="test">
35 <div style="background-image:url(resources/apple.jpg); -webkit-background-size: auto 100%;">
36 <div id="b" style="height: 40px; margin: 10px; background:teal; opacity:0.5;"></div>
37 </div>
38 </div>
40 </body>
41 </html>