| OLD | NEW |
| (Empty) |
| 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: 10p
x; } | |
| 7 </style> | |
| 8 </head> | |
| 9 <body> | |
| 10 <p><b>BUG ID:</b> <a href="https://bugs.webkit.org/show_bug.cgi?id=8467">Bugzill
a bug 8467</a> Block with percentage background-size doesn't repaint properly wh
en it grows</p> | |
| 11 | |
| 12 <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</
b> | |
| 13 The boxes will resize, and their background images will repaint correctly mainta
ining the set background-size. | |
| 14 </p> | |
| 15 | |
| 16 <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
| |
| 17 The boxes will resize, but the background images will leave artifacts on the sid
es. | |
| 18 </p> | |
| 19 | |
| 20 <div class="test"> | |
| 21 <div style="background-image:url(resources/apple.jpg); -webkit-background-si
ze: auto 100%;"> | |
| 22 <div id="a" style="height: 40px; margin: 10px; background-color:teal; op
acity:0.5;"></div> | |
| 23 </div> | |
| 24 </div> | |
| 25 <br> | |
| 26 <div class="test"> | |
| 27 <div style="background-image:url(resources/apple.jpg); -webkit-background-si
ze: auto 100%;"> | |
| 28 <div id="b" style="height: 60px; margin: 10px; background:teal; opacity:
0.5;"></div> | |
| 29 </div> | |
| 30 </div> | |
| 31 | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |