5 /* must be an inline-block */
10 /* must be an inline-block */
11 display: inline-block;
17 <p>Passes if it doesn't crash.
</p>
20 <span id=
"before"><!-- no content can be here --></span>
22 <span id=
"start"><!-- no content can be here --></span>
26 if (window
.testRunner
)
27 testRunner
.dumpAsText();
29 var before
= document
.getElementById('before');
30 var start
= document
.getElementById('start');
31 var test
= document
.getElementById('test');
33 // Select from the #start backwards to the start of the line.
34 window
.getSelection().setBaseAndExtent(document
.getElementById('start'));
35 window
.getSelection().modify('extend', 'backward', 'lineBoundary')
37 // Replace the selection with a break. This replaces #before, text,
38 // #start with two <br>'s.
39 document
.designMode
= 'on';
40 document
.execCommand('InsertLineBreak');
42 // Crash during tear down.
43 test
.innerHTML
= "Both pseudos have been removed: " + (before
.offsetHeight
== 0 && start
.offsetHeight
== 0);