blob: 2a9c4593d6462a94a6b35f43391f5e1cdd66e094 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementById('container').style.alignContent = 'end';
}
onload = runRepaintAndPixelTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid-auto-columns: 200px;
grid-auto-rows: auto;
grid-auto-flow: row;
align-content: start;
width: 200px;
height: 300px;
background-color: orange;
}
.item {
background-color: green;
}
</style>
<p style="height: 20px">Tests invalidation on align-content style change (position). Passes if the orange half is on the top.</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>