Closed Bug 7379 Opened 25 years ago Closed 25 years ago

<TD ALIGN=right> causing unneeded <BR>

Categories

(Core :: Layout, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: clay, Assigned: tbghtown)

References

()

Details

(Whiteboard: [TESTCASE] width=100% applied on every first <td> even if colspan is present)

Attachments

(2 files)

Right aligned table data cells tend to over crowd text to the right-hand side, causing an unneeded carriage return in the text being aligned.

As an example, in the http://my.yahoo.com weather table, any given cell, as in

<TD ALIGN=right><FONT SIZE=-1">22...27 C</FONT></TD>

renders as

22...27 C

in Communicator 4.5, but as

22...27
      C

in Moz 5.0, even when the browser is full screen and has enough space _not_ to add the carriage return.

-clay
Status: NEW → ASSIGNED
Assignee: rickg → karnaze
Status: ASSIGNED → NEW
Chris -- the small sample given renders correctly, but yahoo wraps as they
indicate. I think it's in tables.
The problem in the My Yahoo Weather section seems to stem from a TD element in
the first row whose width is set to 100%.

The attached testcase (2 X 2 table) displays as:

A
B                  1 2 3

in 4.61 (Linux), but renders as

A
                                       1
B                                      2
                                       3

in M7. Note that alignment isn't specified anywhere -- the wrapping in the
second column is simply because it's so narrow.
Attached file testcase
Whiteboard: [TESTCASE] <td width="100%"> too greedy?
Status: NEW → ASSIGNED
at my.yahoo.com there is no
<TR><td width=100%></TD><td></TD><td></TD></TR>
<TR><TD></TD><td></TD><td></TD></TR>
instead there is a
<TR><td width=100% colspan=3></TD></TR>
<TR><TD></TD><td></TD><td></TD></TR>
and in fact m7 produces an additional and unneeded <BR>,
it should be rendered without breaks
Whiteboard: [TESTCASE] <td width="100%"> too greedy? → [TESTCASE] width=100% applied on every first <td> even if colspan is present
Note also that a percentage value for the width attribute of the TD element is
not legal markup. It should be in pixels according the HTML 3.2 and 4.0 specs.
Assignee: karnaze → tbghtown
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Based on the comments below, marking as verified invalid.
You need to log in before you can comment on or make changes to this bug.