Closed Bug 142998 Opened 23 years ago Closed 17 years ago

border-collapse: using css(display:none) to hide rows in tHead drop border in tBody

Categories

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

x86
All
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: andrew_v, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: css2, testcase)

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 20020417 i use a stylesheet to hide tHead and tFoot, but i need a greed in tBody <style type="text/css"> table {border-collapse : collapse; } table td{ border: 1px solid; } table tfoot tr{ display : none} table thead tr{ display : none} </STYLE> <!-- it works --> <table> <caption>without head</caption> <tbody> <tr> <td>bodyR0</td><td>body</td> </tr> </tbody> </table> <!-- it doesn't work --> <table> <caption>with head</caption> <thead> <tr> <td>headR0</td><td>head</td> </tr> </thead> <tbody> <tr> <td>bodyR0</td><td>body</td> </tr> </tbody> <tfoot> <tr> <td>footR0</td><td>foot</td> </tr> </tfoot> </table> <!--and i lost my greed--> Reproducible: Always
-> tables. What is a 'greed' ?
Assignee: Matti → karnaze
Component: Browser-General → HTMLTables
QA Contact: imajes-qa → amar
Confirmed; border-collapse is the problem....
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: using css(display:none) to hide rows in tHead drop border in tBody → border-collapse: using css(display:none) to hide rows in tHead drop border in tBody
Keywords: testcase
OS: Linux → All
Priority: -- → P2
Target Milestone: --- → Future
I've encountered this problem too in build 2002101612 for Windows. For me it's omitting the top and left hand side borders on a table, however it wasn't reproducable when I took the css/html and put it all by itself - it was only a visible problem when used in a dhtml/dom menu system that hides/shows tables. I tested with some css settings, and I agree that border-collapse is the problem maker.
The problem is that we miscalculate the borders; we should ignore collapsed or display:none rows when doing the adjacency calculations....
mass reassign to default owner
Assignee: karnaze → table
QA Contact: amar → madhur
Target Milestone: Future → ---
Target Milestone: --- → Future
Depends on: 203686
Assignee: layout.tables → nobody
Keywords: css2
QA Contact: madhur → layout.tables
*** Bug 315849 has been marked as a duplicate of this bug. ***
This looks like wfm, please reopen if you still see the issue
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: