<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
document.getElementById('inline-block-1').style.display = 'none';
}
onload = runRepaintAndPixelTest;
</script>
<style>
body {
margin : 0;
}
.item {
display: inline-block;
height: 100px;
width: 100px;
}
</style>
Tests paint invalidation of inline blocks following an inline-block that is removed.
Passes if there is only one green square at the top-left corner of the window.
<div style="display: flex; height: 300px; position: absolute; top: 100px">
<div style="display: flex">
<div style="width: 100px">
<div id="inline-block-1" class="item" style="background-color: red"><br></div>
<div id="inline-block-2" class="item" style="background-color: green"><br></div>
</div>
</div>
</div>