Closed Bug 32463 Opened 26 years ago Closed 26 years ago

Table content inherits "align" property (transitional doctype)

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: karnaze)

Details

Example code: <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <table width="50%" align="center"> <tr> <td>This is some text</td> </tr> </table> In NC4.x and IE5, this results in a table that is 50% of the width of the page with the text aligned to the left side of the table. In Mozilla, the text is centered in the table. Aren't transitional doctypes supposed to be in quirks mode? And, are table contents supposed to inherit the table's align property even in strict mode?
Nevermind. I see that in HTML 4.01 this is supposed to happen. This just leaves the question as to whether transitional doctypes are supposed to be in quirks mode. If they are, then this might be an area to look into.
Summary: Table content inherits "align" property → Table content inherits "align" property (transitional doctype)
Changing component to tables
Assignee: troy → karnaze
Component: Layout → HTMLTables
QA Contact: petersen → chrisd
This was fixed a few weeks ago. The align=center no longer sets text-align, even in standard mode (actually, I'm not even sure the standard behavior is right). This is similar to bug 29627 and 7112.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
verifying using 2000062520 nightly on w2k
Status: RESOLVED → VERIFIED
Mass removing self from CC list.
Now I feel sumb because I have to add back. Sorry for the spam.
You need to log in before you can comment on or make changes to this bug.