Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / remove-inline-block-descendant-of-flex.html
blob15a65a9f8c9787eaf793981d666358a3c1459b56
1 <!DOCTYPE html>
2 <script src="resources/text-based-repaint.js"></script>
3 <script>
4 function repaintTest() {
5 document.getElementById('inline-block-1').style.display = 'none';
7 onload = runRepaintTest;
8 </script>
9 <style>
10 body {
11 margin : 0;
13 .item {
14 display: inline-block;
15 height: 100px;
16 width: 100px;
18 </style>
19 Tests paint invalidation of inline blocks following an inline-block that is removed.
20 Passes if there is only one green square at the top-left corner of the window.
21 <div style="display: flex; height: 300px; position: absolute; top: 100px">
22 <div style="display: flex">
23 <div style="width: 100px">
24 <div id="inline-block-1" class="item" style="background-color: red"><br></div>
25 <div id="inline-block-2" class="item" style="background-color: green"><br></div>
26 </div>
27 </div>
28 </div>