Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / relative-positioned-block-crash.html
blob1ec7ab026b1c8ea51361f3a1f0085bc467b582e9
1 <html>
2 <head>
3 <style>
4 #el0 { position: relative; }
5 #el2 { outline-style: dashed; }
6 </style>
7 <script>
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
12 function log(message) {
13 var console = document.getElementById("console");
14 console.appendChild(document.createTextNode(message + "\n"));
17 function test() {
18 document.execCommand('removeformat');
19 setTimeout("finish()", 100);
21 function finish() {
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 log("PASSED: Didn't crash!\n");
25 testRunner.notifyDone();
29 // This tests a crash caused by stale pointers to continuations in a block's continuations table.
30 // https://bugs.webkit.org/show_bug.cgi?id=81276
32 function runTest() {
33 el0=document.createElement('span')
34 el0.setAttribute('id','el0')
35 document.body.appendChild(el0)
36 el1=document.createElement('div')
37 el0.appendChild(el1)
38 el1.appendChild(document.createElement('input'))
39 el0.appendChild(document.createTextNode('A'))
40 el2=document.createElement('q')
41 el2.setAttribute('id','el2')
42 document.body.appendChild(el2)
43 el2.appendChild(document.createElement('div'))
44 el2.appendChild(document.createElement('input'))
45 document.designMode='on'
46 document.execCommand('selectall')
47 document.execCommand('FormatBlock', false, '<'+'pre>')
48 document.execCommand('Undo')
49 setTimeout("test();",10)
51 </script>
52 </head>
53 <body onload="runTest();">
54 <div id="console"></div>
55 </body>
56 </html>