summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/block/crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html
blob: 3d52fdf94b68faf49925db9311fb4e07c64df99f (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
<!doctype HTML>
crbug.com/445285: Do not crash when an element becomes positioned.
<style>
    .container{background-size:50; float:right; }
    #canvas-image,#canvas-padding{display: table-cell};
</style>
<script src="../../resources/check-layout.js"></script>
<div class="container">
    <canvas id="canvas-padding" data-expected-width=300 data-expected-height=150></canvas>
</div>
<pre id="layer-tree">
<script> 
    var test0=document.getElementById("canvas-padding")
    var test2=document.getElementById("layer-tree")
    document.execCommand("usecss", "false")
    test2.appendChild(test0.cloneNode(true));
    test2.style['position']='absolute';
    var styleSheet0 = document.styleSheets[0];
    styleSheet0.insertRule('.container{display: table;}',0);
    document.execCommand("JustifyRight", false)
    document.body.style.zoom=0.50
    document.body.offsetTop;
    window.checkLayout("#canvas-padding");
</script>