Closed
Bug 136370
Opened 23 years ago
Closed 23 years ago
css TD borders override TABLE borders when border-collapse is used
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
CLOSED
WONTFIX
People
(Reporter: gr+bugzilla, Assigned: karnaze)
Details
Attachments
(3 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
BuildID: 2002031104
The CSS property "border-collapse : collapse" can be used as a workaround to
override with 0 the default values for cellspacing and cellpading attributes in
HTML.
If the property is used in conjunction with the border property for TABLE and
TD, mozilla will render the TD borders over the TABLE borders.
Reproducible: Always
Steps to Reproduce:
1. See the css properties in the example attached
Actual Results: Mozilla will render the internal horizontal TD border over the
TABLE vertical border.
Expected Results: Mozilla should end the internal lines at the end of the cell.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
Confirmed on WIN2K with Build : 2002040803. Even the table's top border is
rendered with TD border.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 5•23 years ago
|
||
In the collapsing border model when the table and a table cell have a
conflicting border with the same width and style, the table cell's border wins
out. This applies to borders as well as border intersections (but the spec is
not very clear on that). So, the behavior you are seeing is intentional. If it
were done the other way and we let the table win out, then we could construct
another example where we wanted the table cell to have a continuous
looking border and it wouldn't get it. So, we can't have it both ways. If we
want the table to win out, then either (1) use a larger border for the table,
(2)use a higher priority style for the table's border. ->wontfix
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 6•23 years ago
|
||
karnaze, thanks for the explanation. I was expecting this is the indended
behavior so I guess that's fine.
I was using border-collapse to eliminate default spacing between cells, but that
can be -- and should be -- done using "border-spacing:0". Closing the bug.
Status: RESOLVED → CLOSED
You need to log in
before you can comment on or make changes to this bug.
Description
•