blob: 2f2aaef38523ac461699329dfbd55a9bd4d11b3a [file] [log] [blame]
<!-- Based on fast/repaint/percent-size-image-resize-container.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
if (window.testRunner)
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV",
"LayoutImage (positioned) IMG",
function paintInvalidationTest() {
var div = document.getElementsByTagName('div')[0]; = '100px'; = '200px';
onload = runPaintInvalidationTest;
div {
position: absolute;
top: 50px;
left: 0px;
width: 150px;
height: 150px;
img {
position: absolute;
width: 100%;
height: 100%;
The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize.
<img src="../../../fast/repaint/resources/apple.jpg">