blob: 6b1bff235160599e41bc33ede627bf59fd9b0888 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementById('container').style.justifyItems = 'stretch';
}
onload = runRepaintTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: -webkit-grid;
-webkit-grid: 200px / 300px;
justify-items: end;
width: 200px;
height: 300px;
background-color: red;
}
.item {
-webkit-grid-row: 1;
-webkit-grid-column: 1;
background-color: green;
}
</style>
<p style="height: 20px">Tests invalidation on justify-items style change. Passes if there is no red.</p>
<div id="container">
<div class="item">
<div style="width: 50px; height: 50px"></div>
</div>
</div>