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)
Tracking
()
RESOLVED
FIXED
M18
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>
Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
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
Assignee | ||
Updated•25 years ago
|
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
Assignee | ||
Comment 5•25 years ago
|
||
Putting CSS 2 in summary.
Comment 6•25 years ago
|
||
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.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M14 → M16
Comment 7•25 years ago
|
||
this is either dependent or a dupe of bug 13047. Marking dependent for now.
Depends on: 13047
Assignee | ||
Comment 8•25 years ago
|
||
Updated•25 years ago
|
Summary: [CSS 2] toggling TR.style.visibility = 'collapse'/'visible' looses content → toggling TR.style.visibility = 'collapse'/'visible' looses content
Comment 10•24 years ago
|
||
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
Assignee | ||
Comment 11•24 years ago
|
||
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.
Description
•