Bug 474417. <wbr> support broken. r+sr=roc

This commit is contained in:
Boris Zbarsky 2009-01-20 14:42:25 -05:00
parent c815f9c382
commit 5a3308e838
4 changed files with 24 additions and 1 deletions

View File

@ -4992,7 +4992,7 @@ nsCSSFrameConstructor::FindHTMLData(nsIContent* aContent,
SIMPLE_TAG_CHAIN(mozgeneratedcontentimage,
nsCSSFrameConstructor::FindImgData),
{ &nsGkAtoms::br, FCDATA_DECL(FCDATA_SKIP_FRAMEMAP, NS_NewBRFrame) },
SIMPLE_TAG_CREATE(wbr, NS_NewBRFrame),
SIMPLE_TAG_CREATE(wbr, NS_NewWBRFrame),
SIMPLE_TAG_CHAIN(input, nsCSSFrameConstructor::FindInputData),
SIMPLE_TAG_CREATE(textarea, NS_NewTextControlFrame),
COMPLEX_TAG_CREATE(select, &nsCSSFrameConstructor::ConstructSelectFrame),

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<!-- Use the 0-width non-breakable space to force the same kerning behavior
as <wbr> -->
<html>
<div style="width: 100em">
A&#xFEFF;B
</div>
<div style="width: 0">
A&#xFEFF; B
</div>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<!-- Use the 0-width non-breakable space to give the same heights as the
reference -->
<html>
<div style="width: 100em">
A&#xFEFF;<wbr>B
</div>
<div style="width: 0">
A&#xFEFF;<wbr>B
</div>
</html>

View File

@ -1030,3 +1030,4 @@ fails == 461512-1.html 461512-1-ref.html # Bug 461512
== 471594-1.xhtml 471594-1-ref.html
== 472500-1.xul 472500-1-ref.xul
== 474336-1.xul 474336-1-ref.xul
== 474417-1.html 474417-1-ref.html