Do not create a shape object outside of the layout context
[WebKit-https.git] / LayoutTests / fast / block / float / float-list-changed-before-layout-crash.html
1 <!DOCTYPE html>
2 <html>
3 <style>
4       #el1 {
5         margin: 1px;
6       }
7       #el1:nth-last-child(2n) {
8         display: table-header-group;
9       } 
10       #el2:first-child {
11         display: inline-table;
12       }
13       #el2:nth-last-child(2n) {
14         -webkit-appearance:discrete-capacity-level-indicator;
15       }
16       #el2 {
17         display: table-header-group;
18       } 
19       #el4 {
20         visibility: collapse;
21       }
22       #el5:nth-last-child(2n) {
23         -webkit-appearance:discrete-capacity-level-indicator;
24       }
25       #el5 {
26         display: table-header-group;
27       } 
28       #el6 {
29         -webkit-border-after: solid;
30         float: left;
31       }
32       #el6:last-of-type {
33         content: "B";
34       }
35       #el7::before {
36         content: "A";
37 </style>
38 <body>
39     <script>
40     onload = function() {
41         el0=document.createElement('div')
42         document.body.appendChild(el0)
43         el0.appendChild(document.createElement('li'))
44         el1=document.createElement('canvas')
45         el1.setAttribute('id','el1')
46         document.body.appendChild(el1)
47         el2=document.createElement('canvas')
48         el2.setAttribute('id','el2')
49         document.body.appendChild(el2)
50         el3=document.createElement('meter')
51         document.body.appendChild(el3)
52         el4=document.createElement('div')
53         el4.setAttribute('id','el4')
54         document.body.appendChild(el4)
55         el5=document.createElement('canvas')
56         el5.setAttribute('id','el5')
57         document.body.appendChild(el5)
58         el5.appendChild(document.createTextNode('A'))
59         el6=document.createElement('span')
60         el6.setAttribute('id','el6')
61         document.body.appendChild(el6)
62         document.body.appendChild(document.createElement('span'))
63         el7=document.createElement('div')
64         el7.setAttribute('id','el7')
65         document.body.appendChild(el7)
66         document.designMode='on'
67         window.getSelection().setBaseAndExtent(el3, 1, el3, 1)
68         document.execCommand('InsertLineBreak')
69         document.execCommand('selectall')
70         document.execCommand('strikethrough')
71         document.execCommand('FormatBlock', false, '<'+'pre>')
72         document.execCommand('Undo')
73
74         document.body.innerHTML = "PASS if no crash or assert in debug";
75
76         if (window.testRunner) testRunner.dumpAsText();
77     }
78     </script>
79 </body>
80 </html>