blob: 1cfabcd60b935fb7b6cfa2df63d007142f0c59b9 [file] [log] [blame]
<!-- Based on fast/repaint/justify-items-overflow-change.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow DIV",
"LayoutBlockFlow DIV class='item1'",
"LayoutBlockFlow DIV",
"LayoutBlockFlow DIV class='item2'",
"LayoutGrid DIV id='container'",
"LayoutBlockFlow HTML",
"LayoutBlockFlow BODY",
"LayoutGrid DIV id='container'",
"LayoutBlockFlow DIV class='item1'",
"LayoutBlockFlow DIV",
"LayoutBlockFlow DIV class='item2'",
"LayoutBlockFlow DIV",
];
function paintInvalidationTest() {
document.getElementById('container').style.justifyItems = 'end safe';
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: grid;
grid: 100px 100px / 300px;
justify-items: end true;
width: 200px;
height: 300px;
background-color: red;
}
.item1 {
grid-row: 1;
grid-column: 1;
background-color: green;
width: 160px;
}
.item2 {
grid-row: 1;
grid-column: 2;
background-color: green;
width: 50px;
</style>
<p style="height: 20px">Tests invalidation on justify-items style change. Passes if there is no red.</p>
<div id="container">
<div class="item1">
<div style="height: 50px"></div>
</div>
<div class="item2">
<div style="height: 50px"></div>
</div>
</div>