Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / lists / list-item-without-list-reparented-crash.html
blob31460b552453b068ea346ae76c389f6837e45eda
1 <!DOCTYPE html>
3 <style>
4 p, div, div span {
5 display: inline;
7 li {
8 float: left;
10 </style>
12 <script>
13 onload = function() {
14 var span = document.body.querySelector('span');
16 var oSelection = window.getSelection();
17 oSelection.setBaseAndExtent(span, 0, span, 0);
19 var li = document.querySelector('li');
20 span.insertBefore(li, span.firstChild);
22 document.body.offsetTop;
23 if (window.testRunner)
24 testRunner.dumpAsText();
25 document.write("Test passes if no crash.");
27 </script>
29 <div>
30 <span>x</span>
31 <p></p>
32 <li></li>
33 </div>