Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / multicol / dynamic / spanner-becomes-abspos-crash.html
blob73c744a480c57df6f07aaefcf79231634ad5552d
1 <!DOCTYPE html>
2 <p>Turn a column spanner into an absolutely positioned box.</p>
3 <p>PASS if no crash or assertion failure.</p>
4 <div style="-webkit-column-count:2;">
5 Text.
6 <div>
7 <div id="spanner" style="-webkit-column-span:all;"></div>
8 </div>
9 Text.
10 <span id="something" style="display:none;"></span>
11 </div>
12 <script>
13 if (window.testRunner)
14 testRunner.dumpAsText();
15 document.body.offsetTop;
16 spanner.style.position = "absolute";
18 // Trigger another layout pass, now that the spanner should be
19 // gone. That element is now absolutely positioned, so it should
20 // have lost its spanner capabilities, since the combination of
21 // abspos and spanner isn't allowed.
22 document.body.offsetTop;
23 something.style.display = "inline";
24 </script>