blob: c7d878cc541e1a4c994d57a7e8e6008470317f9a [file] [log] [blame]
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
}
onload = runRepaintAndPixelTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 300px / 100px;
width: 200px;
height: 300px;
background-color: red;
}
.item {
grid-row: 1;
grid-column: 1;
align-self: start;
background-color: green;
}
</style>
<p style="height: 20px">There should be no invalidations because align-self style change causes no visual change.</p>
<div id="container">
<div class="item">
<div style="height: 300px"></div>
</div>
</div>