Closed
Bug 71435
Opened 24 years ago
Closed 24 years ago
table attributes not inherited by cell
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: ve3ll, Assigned: karnaze)
References
()
Details
The <table align="center"> attribute is not inherited
correctly by table cells. The html spec is quite clear
on this so it should be adhered to. I note that there
are many more bug reports on other table inheritance
problems such as font and color. But not one specifically
on align. I gues there is a major chore here in
understanding the spec or in getting the rendering to
do the spec.
Comment 1•24 years ago
|
||
IIRC <table align="center"> means that the table as a whole is centered, not the
table contents. Proposing INVALID.
BTW, it has to be
h1{font-style : italic;}
instead of
h1 {font-family:cursive}
(that's German for "Italics").
Reporter | ||
Comment 2•24 years ago
|
||
Oliver's comments are not respecting the
specifications as found on www.w3.org
<table align="center"> must be inherited
unless overridden by row column or cell
align attribute. Very clear statement in the SPEC
Also font-family specs a group of fonts to be tested
First that platform can handle is used
And cursive is a generic group name that includes italics
as a specific one.
The font choice works in msie (if that is any kind of a test)
but it may be in how mosilla points at an installed ttf font.
Comment 3•24 years ago
|
||
Cursive and Fantasy behave very oddly from one Mozilla to another... I guess
it's an expected bug since these two generic-fonts don't usually have any
more-or-less standard name in Un*x. I'd say that "cursive" should be Lucida
Handwriting or something, but most users will probably not have it, or have
something else. Providing for cursive and fantasy would be as difficult as
giving a list of regexes to lookup among the system fonts. Also, there may be a
prefs.js entry to set it up manually (?).
Further on -- the "align" attribute set on a table should in fact get inherited
down to the cells unless they have another alignment specified. I tested the
page in both quirks and non-quirks mode, and it doesn't affect it. Since
conforming to the specs in this matter would most likely break many pages, it
might be a good idea to keep things like they are in quirks mode, and stick to
w3c specs in standard mode, inheriging the "align" attribute of the table
(unless w3c will show as much lenience as in case of TH. From the docs it would
seem they don't mind that TH are center-aligned by default in most visual agents).
(refer to http://www.w3.org/TR/html401/struct/tables.html#h-11.3.2.1)
frame="hsides" is in fact ignored -- I can see table borders on all sides.
Definitely a bug in need of fixing.
(refer to http://www.w3.org/TR/html401/struct/tables.html#adef-frame)
However, I can't confirm issues 4 to 6 in Linux/2k1-03-07-14.
Comment 4•24 years ago
|
||
More on "cursive" and "fantasy". It all depends on the default prefs distributed
with mozilla. Fantasy is only specified for the Mac ("Gadget" font) and absent
everywhere else, so defaults will be used. On Windows cursive is specified as
"Comic Sans MS" (mac="Apple Chancery"). On all other platforms fantasy and
cursive are undefined, so defaults will be used.
You can specify the font to use with both cursive and fantasy manually in
prefs.js. For my unix box the line is:
user_pref("font.name.cursive.x-western", "bigelow & holmes-lucida
handwriting-iso8859-1");
I think this is very minor (c'mon, if you're experimenting with cursive and
fantasy, you're asking for something totally unexpected).
Comment 5•24 years ago
|
||
Never mind my rant on HSIDES. I was on crack. It works fine. :)
Comment 6•24 years ago
|
||
this bug is invalid - table attributes not inherited by cell
to john russell:
the table attribute align = left|center|right [CI] is deprecated.
This attribute specifies the position of the table with respect to the
document. Permitted values:
left: The table is to the left of the document.
center: The table is to the center of the document.
right: The table is to the right of the document.
this means mozilla does it right. in html 4.x transitional you can use this
attribute to align the
table. it does not mean that it should inherited by the table cells.
the url http://www.w3.org/TR/html401/struct/tables.html#h-11.3.2.1 includes the
point:
5. An attribute set on the table (TABLE).
the correct way to do this, would be in your example:
<table summary="simple chart" width="50%" align="center" border="1" style="text-
align: center;">
<tbody>
<tr>
<th>links</th>
<th>middle</th>
<th>right</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</tbody>
</table>
for the font-family issue please create a new bug report. (only one bug per
report)
to Konstantin Riabitsev:
> frame="hsides" is in fact ignored
please see bug 24113 (<table> frame and rules attributes not handled correctly)
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•