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


(Add your own)

1 Posted by Philippe on 25 September 2006 | Permalink

This is not a bug, imho.
Read 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}


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

This, I believe, is bug 43178 in mozilla's bugzilla database:

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

but if you use

border-collapse: collapse;
border: 1px solid black;

td { border-style: none; }

then you'll get the expected results.