blob: f70cb3237ca6f179340ebd97f88b89e4a8878aee [file] [log] [blame]
<html>
<head>
<script src="resources/text-based-repaint.js"></script>
<style>
#outer {
padding-top: 200px;
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1))
);
background-size: auto;
}
#inner {
height: 100px;
}
</style>
<script>
// This test verifies that gradient background gets repainted properly after child box height change.
function repaintTest() {
document.getElementById('inner').style.height = '300px';
}
</script>
</head>
<body onload='runRepaintTest();'>
<div id='outer'>
<div id='inner'>
</div>
</div>
</body>
</html>