blob: 5edb167955009c62d9a329e7c90c6354e3aa1417 [file] [log] [blame]
<!-- Based on fast/repaint/background-shorthand-with-gradient-and-height-changes.html -->
<script src="resources/paint-invalidation-test.js"></script>
#outer {
padding-top: 200px;
/* background-size is implicitly set to initial via the background shorthand. */
left top,
left bottom,
color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1))
#inner {
height: 100px;
//This test verifies that gradient background gets repainted properly after child box height change.
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow DIV id='outer'",
"LayoutBlockFlow DIV id='inner'",
function paintInvalidationTest() {
document.getElementById('inner').style.height = 300 + 'px';
<body onload='runPaintInvalidationTest();'>
<div id='outer'>
<div id='inner'>