bug 39799 - map NS_STYLE_TEXT_ALIGN_CENTER to align=center, r=syd.

This commit is contained in:
karnaze%netscape.com 2000-07-06 13:42:57 +00:00
parent f9d9b2d41c
commit c4a05b9a09
2 changed files with 8 additions and 2 deletions

View File

@ -2560,7 +2560,10 @@ static nsGenericHTMLElement::EnumTable kCompatTableCellHAlignTable[] = {
// The following are non-standard but necessary for Nav4 compatibility
{ "middle", NS_STYLE_TEXT_ALIGN_MOZ_CENTER },
{ "absmiddle", NS_STYLE_TEXT_ALIGN_CENTER },// XXX is this right???
// allow center and absmiddle to map to NS_STYLE_TEXT_ALIGN_CENTER and
// NS_STYLE_TEXT_ALIGN_CENTER to map to center by using the following order
{ "center", NS_STYLE_TEXT_ALIGN_CENTER },
{ "absmiddle", NS_STYLE_TEXT_ALIGN_CENTER },
{ 0 }
};

View File

@ -2560,7 +2560,10 @@ static nsGenericHTMLElement::EnumTable kCompatTableCellHAlignTable[] = {
// The following are non-standard but necessary for Nav4 compatibility
{ "middle", NS_STYLE_TEXT_ALIGN_MOZ_CENTER },
{ "absmiddle", NS_STYLE_TEXT_ALIGN_CENTER },// XXX is this right???
// allow center and absmiddle to map to NS_STYLE_TEXT_ALIGN_CENTER and
// NS_STYLE_TEXT_ALIGN_CENTER to map to center by using the following order
{ "center", NS_STYLE_TEXT_ALIGN_CENTER },
{ "absmiddle", NS_STYLE_TEXT_ALIGN_CENTER },
{ 0 }
};