summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html
blob: 5af46da4c95e0a4c922df559cffd7a2d7ffe58cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<style>
.mv-tile{
    display:inline-block;
    height:50px;
    position:relative;
    width:100px;
    margin-right:410px;
}
</style>
<div style="position: absolute; width: 1000px; height: 1000px; transform: translateZ(0)"></div>
<div id="container">
    <div class="mv-tile" id="foo"></div>
    <div class="mv-tile" style="background-color: lightblue;"></div>
</div>
<div class="mv-tile" style="width: 1000px"></div>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
// This test verifies that a paint invalidation is correctly issued for both the old and new location of
// the mv-tile element which is *not* removed from the DOM, but nevertheless moves to the left as the other one
// is removed.

function repaintTest() {
    document.querySelector("#foo").remove();
}

runRepaintTest();

</script>