summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/block/positioned-movement-assert.html
blob: d46194ffd620bc90ec834d6f29774dc1f725314b (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
30
<!doctype html>
<style>
#container {
    display: inline;
}

.target {
    position: relative;
    float: left;
    top: 10px;
    left: 10px;
}

.target:after {
    position: absolute;
    content: 'foo';
}
</style>
<p>crbug.com/454824: Don't mark ancestors for layout during positioned movement layout. This test should not assert. </p>
<div id="container">
    <div id="target1" class="target"></div>
</div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
    document.body.offsetTop;
    var div = document.querySelector('#target1');
    div.style.left = '100px';
    div.style.top = '100px';
</script>