blob: 4a8af0a8047ff9861bdf33470ce421bb98fbf434 [file] [log] [blame]
<!-- Based on fast/repaint/justify-content-change.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
document.getElementById('container').style.justifyContent = 'space-between';
}
onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
#container {
display: flex;
justify-content: space-around;
width: 200px;
height: 300px;
background-color: orange;
}
.item {
background-color: green;
border: solid thin blue;
width: 50px;
}
</style>
<p style="height: 20px">Tests invalidation on justify-content style change. Passes if only one big orange bar appear in the middle of the box.</p>
<div id="container">
<div class="item">
<div style="height: 50px"></div>
</div>
<div class="item">
<div style="height: 50px"></div>
</div>
</div>