table border-collapse/border attribute bug

When the HTML table attribute border="1" is used with the CSS table property border-collapse: collapse; and the CSS table cell property border-style: none;, Mozilla incorrectly inserts a 1-pixel-wide black border between the cells in the table.

Test page Workaround is not included
Reported by: pauldwaite.

Mozilla | Reported on 25 September 2006.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Philippe on 25 September 2006 | Permalink

This is not a bug, imho.
Read 17.6.2.1 Border conflict resolution of the CSS 2.1 docs [1]. In this case, the border is painted from the html border attribute.

The solution is of course, pretty simple: td {border:hidden}

[1] http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution

2 Posted by Gérard Talbot on 25 September 2006 | Permalink

This, I believe, is bug 43178 in mozilla's bugzilla database:
https://bugzilla.mozilla.org/show_bug.cgi?id=43178

The bug is also reproducible with
<table frame="box">
and
<table frame="border">
(instead of border="1")

but if you use

table
{
border-collapse: collapse;
border: 1px solid black;
}

td { border-style: none; }

then you'll get the expected results.

Gérard