1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
5 <title>Soft hyphen displayed when first character
</title>
9 In all of the following, there should not be a hyphen before
“lorem
”.
12 <p>Do
<span style=
"float:right; display:inline-block; border:1px solid red;">X
</span>­lorem ipsum
</p>
14 <p><span style=
"float:right; display:inline-block; border:1px solid red;">X
</span>­lorem ipsum
</p>
17 <p>Do
<span style=
"position:relative; display:inline-block; border:1px solid red;">X
</span>­lorem ipsum
</p>
19 <p>Do
<span style=
"position:absolute; right:0; display:inline-block; border:1px solid red;">X
</span>­lorem ipsum
</p>
21 Do
<p>­lorem ipsum
</p>
23 <p>Do
<br/>­lorem ipsum
</p>
25 <p>Do
<span>­lorem
</span> ipsum
</p>
27 <p>D
<span>o
</span>­lorem ipsum
</p>
29 <p>Do
<span>­lorem
</span> ipsum
</p>
31 <p>D
<span>o
</span>­lorem ipsum
</p>
33 <p>Do
<span>­lorem
</span> ipsum
</p>
35 <p>D
<span>o
</span>­lorem ipsum
</p>
37 <p>Do
­ lorem
</p><!-- WinIE displays as two spaces -->
38 <p>Do
­ ­lorem
</p>
41 <p>Do
­ lorem
</p><!-- WinIE displays as two spaces -->
44 <p>Do
<span></span>­lorem ipsum
</p>
46 <p>Do
­­lorem ipsum
</p>
48 <p><span>Do
­</span>­lorem ipsum
</p>
49 <p>Do
­<span>­lorem ipsum
</span></p>
50 <p><span>Do
­­</span>lorem ipsum
</p>
52 <p>The following pair should be the same:
</p><!-- LayoutText fix -->
54 <p>W
<span style=
"display:inline-block; border:1px solid red;">­X
</span>Y
</p>
55 <p>W
<span style=
"display:inline-block; border:1px solid red;">X
</span>Y
</p>