5 /* must be an inline-block */
12 <p>Passes if it doesn't crash and the pseudo exists.</p>
15 <span id="before"><!-- no content can be here --></span>
17 <span id="start"><!-- no content can be here --></span>
21 if (window.testRunner)
22 testRunner.dumpAsText();
24 var before = document.getElementById('before');
25 var test = document.getElementById('test');
27 // Select from the #start backwards to the start of the line.
28 window.getSelection().setBaseAndExtent(document.getElementById('start'));
29 window.getSelection().modify('extend', 'backward', 'lineBoundary')
31 // Replace the selection with a break. This apparently puts two <br>'s before
32 // the #before and removes the span with "text" and the #start.
33 document.designMode = 'on';
34 document.execCommand('InsertLineBreak');
36 // Crash during tear down.
37 test.innerHTML = "Pseudo still exists: " + (before.offsetHeight > 0);