1 <!-- Based on fast/repaint/remove-inline-block-descendant-of-flex.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
9 "LayoutBlockFlow DIV id='inline-block-1' class='item'",
17 "LayoutBlockFlow DIV",
18 "LayoutBlockFlow DIV id='inline-block-2' class='item'",
22 function paintInvalidationTest() {
23 document
.getElementById('inline-block-1').style
.display
= 'none';
25 onload
= runPaintInvalidationTest
;
32 display: inline-block;
37 Tests paint invalidation of inline blocks following an inline-block that is removed.
38 Passes if there is only one green square at the top-left corner of the window.
39 <div style=
"display: flex; height: 300px; position: absolute; top: 100px">
40 <div style=
"display: flex">
41 <div style=
"width: 100px">
42 <div id=
"inline-block-1" class=
"item" style=
"background-color: red"><br></div>
43 <div id=
"inline-block-2" class=
"item" style=
"background-color: green"><br></div>