Closed Bug 292219 Opened 20 years ago Closed 20 years ago

border on table cell paints over table border and even painted outside of table

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050417 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050417 Firefox/1.0.4

see attached testcase:

css borders on TD/TH get drawn over the table border and even aouside of the
table area.

I would expect i.e. the gray bar to be not wider than the background color and
the left and right end should get overpainted by the table border.

even worse the red border: it shows up outside the table area

It's the same in strict and quirks mode


Reproducible: Always
the thicker border wins as specifiied in CSS 2.1, could you explain what mozilla
violates with respect to the CSS 2.1 specification
(In reply to comment #2)
hm, ok. The red all-round border is probably right. It does not really belong to
this bug.

the other one is the issue: the gray top border shows not only at the top of the
TD but also slightly to the left and right of the TD. But not as much as the
specified border-with - just enough to overlap the outside table border. This
looks and feels wrong.
It looks to me like we're just following the CSS spec here.  The top border
should overlap the side borders of the table here, given how the collapsed
border model works, and it should end up on top of them per the border conflict
resolution algorithm.

Granted, the resulting behavior is suboptimal.  I would suggest contacting the
CSS working group and asking them to better define conflict resolution at
corners, perhaps.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: