Closed Bug 19929 Opened 25 years ago Closed 25 years ago

Table background behavior reverted to Netscape 4.0 behavior

Categories

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

x86
Windows 98
enhancement

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: seoman, Assigned: karnaze)

References

()

Details

Attachments

(1 file)

In M9 and M10 releases a table with the bgcolor attribute specified in the
table tag would solidly fill in the entire table box with that color. In M11
this has changed back to the Netscape 4.0 way of handling it, where it leaves
transparent borders around each of the table cells.

Example HTML:
<table bgcolor="#cccccc">
<tr><td>text</td><td>text2</td></tr>
</table>

In M11 the above would look like two gray squares, one with "text" and the
other with "text2". In M9 and M10 it looks like one gray square with the
words "text" and "text2" in it. This behavior is more desireable (to me, at
least), as it allows for a cleaner look.
*** Bug 20702 has been marked as a duplicate of this bug. ***
My comments from bug #20702: ``the question is really 'who paints the
"interstitial" areas' ... earlier Mn versions painted it with the parent table
BGCOLOR, but this has recently changed. (I should cook up a testcase, but look
at res/samples/test6.html and note how the outer table's border is 'white',
while inner tables' borders are the color of the containing table).''
Near as I can tell, the appropriate specification is at
http://www.w3.org/TR/REC-html40/struct/tables.html#adef-border-TABLE. It
appears, as usual, that the W3C has completely nothing to specify about how a
user agent should render borders.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
The behavior you desire is still possible in "standard mode" and with the latest
build it is still working. It has always been the case that in "quirks mode" the
cellspacing didn't take on the background of the table. In Viewer, you can
enable "standard mode" by going to style/compatibility-mode.
Status: RESOLVED → VERIFIED
Doh! I should pay more attention. Yes, in viewer under standard mode, it
does indeed paint the with the table background-color. Marking VERIFIED.

For the benefit of seoman@tesseract.net, I note that standard mode
applies to any page with a DOCTYPE of :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
               "http://www.w3.org/TR/REC-html40/strict.dtd">

Other DOCTYPEs also trigger standard mode (see bug #1312).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: