mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 474417. <wbr> support broken. r+sr=roc
This commit is contained in:
parent
c815f9c382
commit
5a3308e838
@ -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),
|
||||
|
11
layout/reftests/bugs/474417-1-ref.html
Normal file
11
layout/reftests/bugs/474417-1-ref.html
Normal 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">
|
||||
AB
|
||||
</div>
|
||||
<div style="width: 0">
|
||||
A B
|
||||
</div>
|
||||
</html>
|
11
layout/reftests/bugs/474417-1.html
Normal file
11
layout/reftests/bugs/474417-1.html
Normal 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<wbr>B
|
||||
</div>
|
||||
<div style="width: 0">
|
||||
A<wbr>B
|
||||
</div>
|
||||
</html>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user