blob: 0953dd8189ef08ee7c706a10f1aeda0652da6a4a [file] [log] [blame]
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementById('container').style.alignItems = 'safe end';
}
onload = runRepaintTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 150px 150px / 200px;
align-items: unsafe end;
width: 200px;
height: 300px;
background-color: red;
}
.item1 {
grid-row: 1;
grid-column: 1;
background-color: green;
}
.item2 {
grid-row: 2;
grid-column: 1;
background-color: green;
}
</style>
<p style="height: 20px">Tests invalidation on align-items style change (just overflow). Passes if there is no red.</p>
<div id="container">
<div class="item1">
<div style="height: 200px"></div>
</div>
<div class="item2">
<div style="height: 100px"></div>
</div>
</div>