blob: 26582e8aa2e5b86b1b9c7152e6d009952416b41b [file] [log] [blame]
<!-- Based on fast/repaint/align-self-change-keeping-geometry-grid.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function paintInvalidationTest() {
document.getElementsByClassName('item')[0].style.alignSelf = 'stretch';
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 100px / 300px;
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>