Closed Bug 6150 Opened 25 years ago Closed 25 years ago

{compat} HTML's align != CSS' text-align

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 7112

People

(Reporter: sjoerd, Assigned: peterl-retired)

References

()

Details

Attachments

(1 file)

A table inside a TD with align=center does not center.
Attached file Example of bug, same as URL (deleted) —
Status: NEW → ASSIGNED
Target Milestone: M9
*** Bug 4612 has been marked as a duplicate of this bug. ***
*** Bug 5767 has been marked as a duplicate of this bug. ***
Component: HTMLTables → Layout
Summary: table inside a td does not align → {layout table inside a td does not align
The problem is actually much more generic that simply tables inside cells. All HTML alignment
Assignee: karnaze → rickg
Status: ASSIGNED → NEW
Summary: {layout table inside a td does not align → {compat} HTML's align != CSS' text-align
[Oops. A bit enter-happy. Lets try that again.] The problem is actually much more generic that simply tables inside cells. All HTML alignment attributes are being translated into 'text-align' properties in CSS. Unfortunately, they should not be. The 'correct' translation would be to use the equivalent of the following rules: [ALIGN=CENTER] *, [ALIGN=RIGHT] * { margin-left: auto; } [ALIGN=CENTER] *, [ALIGN=LEFT] * { margin-right: auto; } ...with the correct specificity, of course (see bug 2942). I am reassigning to Layout, but this may have to be reassigned to Style System. Who exactly is in charge of the HTML presentation attribute -> implied CSS rules translation step?
Assignee: rickg → peterl
Peter: this may be yours or ChrisK's, so I'll start with you.
Status: NEW → ASSIGNED
I don't think that's the right solution. I think the problem only involves tables, not "*". Perhaps this bug is a dup of bug 7112, in which I described what I think is a better solution.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Yep. I reread the HTML4 spec and discovered that the meaning of ALIGN is not consistent across all elements. This is a dup of bug 7112. *** This bug has been marked as a duplicate of 7112 ***
Status: RESOLVED → VERIFIED
Verifying bug dup of #7112
Blocks: 3061
No longer blocks: 3061
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: