Closed Bug 18962 Opened 25 years ago Closed 24 years ago

toggling TR.style.visibility = 'collapse'/'visible' looses content

Categories

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

x86
Windows 95
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: martin.honnen, Assigned: karnaze)

References

()

Details

(Keywords: css2, testcase)

Attachments

(2 files)

When setting the visibility of TR elements to collapse and then back to visible the contents of the TR is no longer displayed only the bgcolor <HTML> <HEAD> <TITLE> </TITLE> <STYLE> </STYLE> <SCRIPT> var visible = true; function changeTRVisibility () { var t = document.getElementById('aTable'); for (var r = 1; r < t.rows.length; r += 2) t.rows[r].style.visibility = visible ? 'collapse' : 'visible'; visible = !visible; } </SCRIPT> </HEAD> <BODY> <BUTTON ONCLICK="changeTRVisibility();"> change visibility </BUTTON> <BR> <TABLE ID="aTable"> <TR BGCOLOR="lime"> <TD> Kibology </TD> <TD> for </TD> <TD> all </TD> </TR> <TR BGCOLOR="yellow"> <TD> All </TD> <TD> for </TD> <TD> Kibology </TD> </TR> <TR BGCOLOR="lime"> <TD> Kibology </TD> <TD> for </TD> <TD> all </TD> </TR> <TR BGCOLOR="yellow"> <TD> All </TD> <TD> for </TD> <TD> Kibology </TD> </TR> <TR BGCOLOR="lime"> <TD> Kibology </TD> <TD> for </TD> <TD> all </TD> </TR> <TR BGCOLOR="yellow"> <TD> All </TD> <TD> for </TD> <TD> Kibology </TD> </TR> <TR BGCOLOR="lime"> <TD> Kibology </TD> <TD> for </TD> <TD> all </TD> </TR> <TR BGCOLOR="yellow"> <TD> All </TD> <TD> for </TD> <TD> Kibology </TD> </TR> <TR BGCOLOR="lime"> <TD> Kibology </TD> <TD> for </TD> <TD> all </TD> </TR> <TR BGCOLOR="yellow"> <TD> All </TD> <TD> for </TD> <TD> Kibology </TD> </TR> </TABLE> </BODY> </HTML>
Attached file bug demo (deleted) —
In an attempt to get my bug list in order again, marking all the bugs I have currently as ASSIGNED.
Assignee: vidur → karnaze
Status: ASSIGNED → NEW
Component: DOM Level 2 → HTMLTables
I don't see why this is Vidur's bug. It is either tables or style. Re-assinging to Chris. He can evaluate whether it is a table bug
*** Bug 19038 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Summary: toggling TR.style.visibility = 'collapse'/'visible' looses content → [CSS 2] toggling TR.style.visibility = 'collapse'/'visible' looses content
Target Milestone: M14
Putting CSS 2 in summary.
The original problem described in this bug seems to be fixed by now. If I click the button twice, the table looks exactly as it did when i loaded it. But it seems that a new bug appeared: The cell content of the collapsed cells draws into the visible cells. I am using WIN98 1999122208.
Target Milestone: M14 → M16
this is either dependent or a dupe of bug 13047. Marking dependent for now.
Depends on: 13047
Attached file reduced attachment #1 (deleted) —
Keywords: css2
Summary: [CSS 2] toggling TR.style.visibility = 'collapse'/'visible' looses content → toggling TR.style.visibility = 'collapse'/'visible' looses content
Moving to M18.
Target Milestone: M16 → M18
this *seems* to work now in 2000060208, but when you hide it there's a 1 or 2 px line of lime, should that be there or not? everything else seems to work fine
Keywords: testcase
The minimum height of the collapsed row occurs in quirks mode. In standard mode, it is not there. This bug was fixed during some incremental reflow changes over the last few weeks, because I seem to remember this test case on another bug.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: