Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / crash-when-element-becomes-positioned-and-doesnt-clear-floating-objects.html
blob3d52fdf94b68faf49925db9311fb4e07c64df99f
1 <!doctype HTML>
2 crbug.com/445285: Do not crash when an element becomes positioned.
3 <style>
4 .container{background-size:50; float:right; }
5 #canvas-image,#canvas-padding{display: table-cell};
6 </style>
7 <script src="../../resources/check-layout.js"></script>
8 <div class="container">
9 <canvas id="canvas-padding" data-expected-width=300 data-expected-height=150></canvas>
10 </div>
11 <pre id="layer-tree">
12 <script>
13 var test0=document.getElementById("canvas-padding")
14 var test2=document.getElementById("layer-tree")
15 document.execCommand("usecss", "false")
16 test2.appendChild(test0.cloneNode(true));
17 test2.style['position']='absolute';
18 var styleSheet0 = document.styleSheets[0];
19 styleSheet0.insertRule('.container{display: table;}',0);
20 document.execCommand("JustifyRight", false)
21 document.body.style.zoom=0.50
22 document.body.offsetTop;
23 window.checkLayout("#canvas-padding");
24 </script>