blob: b703ade700370193a204d3475b2524c608d62fa2 [file] [log] [blame]
<!-- Based on fast/repaint/align-self-change-grid.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow DIV class='item1'",
"LayoutBlockFlow DIV",
"LayoutBlockFlow DIV class='item2'",
];
function paintInvalidationTest() {
document.getElementsByClassName('item1')[0].style.alignSelf = 'stretch';
document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch';
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 100px 100px / 300px;
width: 200px;
height: 300px;
background-color: red;
}
.item1 {
grid-row: 1;
grid-column: 1;
align-self: end;
background-color: green;
}
.item2 {
grid-row: 1;
grid-column: 2;
align-self: start;
background-color: green;
}
</style>
<p style="height: 20px">Tests invalidation on align-self style change. Passes if there is no red.</p>
<div id="container">
<div class="item1">
<div style="height: 50px"></div>
</div>
<div class="item2">
<div style="height: 50px"></div>
</div>
</div>