Open Bug 764741 Opened 12 years ago Updated 1 year ago

Table cell borders missing: should reprocess borders collapsed by "border-collapse: collapse" if some rows are hidden with "display:none"

Categories

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

13 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nagyt, Unassigned)

References

()

Details

Attachments

(2 files)

Attached file bad_table.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 2012042100

Steps to reproduce:

I have loaded the attached HTML, which contains a very simple table, with some rows hidden. If the last or the last but one <tbody> section is removed, then the tables is displayed correctly.
Note, that in Chrome, Opera, Safari and IE the table appears correctly.


Actual results:

The table cell borders are incorrect. All vertical borders are missing and also some of the horizontal ones.


Expected results:

All table cell borders should appear.
The problem is the same on all windows and linux and from Firefox 3.6.x to 13.0.
OS: Linux → All
Priority: -- → P3
Hardware: x86_64 → All
The problem is the same on 14.0b6.
This is probably a dupe of an existing border-collapse bug, because the borders in the testcase show up OK when border-collapse: collapse is removed.
Attachment #633070 - Attachment mime type: text/plain → text/html
Comment 3 is correct, but they also show up if you do not use <tr style="display:none"> in your HTML code. Elements with 'display: none' are not rendered so I don't see a bug here.
I disagree with comment 4. If table row is hidden, the border of the previous and next rows should appear.
Maybe duplicate of bug 217769 (though I don't fully understand what that bug is about)?
Component: Untriaged → Layout: Tables
Product: Firefox → Core
Summary: Table cell borders missing → Table cell borders missing: should reprocess borders collapsed by "border-collapse: collapse" if some rows are hidden with "display:none"
Attached file tfoot_css.html

Still occurs in FF 89. New test case attached. Chrome and Edge handle this correctly.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: