blob: ec838a549258b5ad1858ce5ff885bb06d9d51047 [file] [log] [blame]
<!-- Based on fast/repaint/remove-inline-block-descendant-of-flex.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
function paintInvalidationTest() {
document.getElementById('inline-block-1').style.display = 'none';
onload = runPaintInvalidationTest;
body {
margin : 0;
.item {
display: inline-block;
height: 100px;
width: 100px;
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>