blob: b0bb520564c0e7d19eadeca48f741ee04b37b8dc [file] [log] [blame]
<!-- Based on fast/repaint/align-content-distribution-change-grid.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
document.getElementById('container').style.alignContent = 'stretch';
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid-auto-columns: 200px;
grid-auto-rows: auto;
grid-auto-flow: row;
align-content: space-around;
width: 200px;
height: 300px;
background-color: red;
}
.item {
background-color: green;
}
</style>
<p style="height: 20px">Tests invalidation on align-content style change (distribution). Passes if there is no red.</p>
<div id="container">
<div class="item">
<div style="height: 50px"></div>
</div>
<div class="item">
<div style="height: 50px"></div>
</div>
<div class="item">
<div style="height: 50px"></div>
</div>
</div>