Closed Bug 1401 Opened 26 years ago Closed 26 years ago

table borders almost invisible

Categories

(Core :: Layout: Tables, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: harishd)

References

()

Details

the top and left border of a table (border=1), and the bottom and right border of a cell, are drawn in a very faint grey, so they are almost invisible on a white background.
Component: Style%20System → HTMLTables
It will be very useful if you could attach a sample URL
Status: NEW → ASSIGNED
When the body bgcolor is set to white the cell bottom border and right border are almost invisible. This is because of the condition in nsTableCellFrame.cpp that converts the borderColor to light gray. i.e., if (borderColor == 0xFFFFFFFF ) Line: 536 borderColor = 0xFFC0C0C0; Note: The borderColor gets the white color from the background color Changing the borderColor to black when the bgcolor is white solves the problem, i.e., if (borderColor == 0xFFFFFFFF ) Line: 536 borderColor = 0xFF000000; // instead of 0xFFC0C0C0 When no bgcolor is specified we don't see any problems with the cell border visibility. This could be because of the fact that the bgcolor is set to a default value ( mDefaultBackgroundColor = ::GetSysColor(COLOR_WINDOW); ) and that value somehow gets a darker shade to the border color. Waiting for your comments Steve.
I'm not sure where you're looking. nsTableCellFrame::MapHTMLBorderStyle() has this code: if (borderColor == 0xFFFFFFFF) borderColor = 0xFFC0C0C0; also, your comments don't address the table border itself (not just the cell borders.)
*** Bug 1325 has been marked as a duplicate of this bug. ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Using 2/11 build, verified bug fixed
You need to log in before you can comment on or make changes to this bug.