Closed
Bug 6150
Opened 25 years ago
Closed 25 years ago
{compat} HTML's align != CSS' text-align
Categories
(Core :: Layout, defect, P3)
Tracking
()
M10
People
(Reporter: sjoerd, Assigned: peterl-retired)
References
()
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
A table inside a TD with align=center does not center.
Reporter | ||
Comment 1•25 years ago
|
||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M9
Updated•25 years ago
|
Component: HTMLTables → Layout
Summary: table inside a td does not align → {layout table inside a td does not align
Comment 4•25 years ago
|
||
The problem is actually much more generic that simply tables inside cells.
All HTML alignment
Updated•25 years ago
|
Assignee: karnaze → rickg
Status: ASSIGNED → NEW
Summary: {layout table inside a td does not align → {compat} HTML's align != CSS' text-align
Comment 5•25 years ago
|
||
[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 | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Comment 7•25 years ago
|
||
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.
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Comment 8•25 years ago
|
||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 9•25 years ago
|
||
Verifying bug dup of #7112
You need to log in
before you can comment on or make changes to this bug.
Description
•