Closed Bug 254035 Opened 20 years ago Closed 20 years ago

incorrect changing visibility of TABLEs with collapsed borders

Categories

(Core :: Layout: Tables, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: navfx, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.8

When changing 'visibility' of a TABLE to 'hidden', some part (top and left) of
table border stays visible. This bug occurs when this table has set
'border-collapse' property to 'collapse'....

When using 'display' property instead of 'visibility' everything works just fine.

example code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
 <HEAD>
  <TITLE>xxx</TITLE>

  <STYLE type="text/css">
   TABLE#s1 {
	border: solid;
	border-color: #141C55;
	border-width: 1px 1px 1px 1px;
	border-collapse: collapse;
	}
   TABLE#s2 {
	border: solid;
	border-color: #141C55;
	border-width: 1px 1px 1px 1px;
	border-collapse: separate;
	}
  </STYLE>
</HEAD>

<BODY>
<A HREF="javascript:void(0)"
onMouseOver="document.getElementById('s1').style.visibility='hidden';"
onMouseOut="document.getElementById('s1').style.visibility='visible';">ON/OFF</A>
changing visibility - borders collapsed<BR><BR>

<TABLE ID="s1">
 <TR>
  <TD>Cell_1_1...</TD>
  <TD>Cell_1_2...</TD>
 </TR>
 <TR>
  <TD>Cell_2_1...</TD>
  <TD>Cell_2_2...</TD>
 </TR>
</TABLE>

<BR><BR><BR>

<A HREF="javascript:void(0)"
onMouseOver="document.getElementById('s2').style.visibility='hidden';"
onMouseOut="document.getElementById('s2').style.visibility='visible';">ON/OFF</A>
changing display - borders separated<BR><BR>

<TABLE ID="s2">
 <TR>
  <TD>Cell_1_1...</TD>
  <TD>Cell_1_2...</TD>
 </TR>
 <TR>
  <TD>Cell_2_1...</TD>
  <TD>Cell_2_2...</TD>
 </TR>
</TABLE>

</BODY>
</HTML>

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




The rumor is this bug occurs in other mozilla browsers as well...
Attached file example (obsolete) —
Making the border a bit thicker to make sure it's not a just a rounding error.
Attachment #155007 - Attachment is obsolete: true
Severity: major → normal
Status: UNCONFIRMED → NEW
Depends on: 155955
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
This is a possible regression of Bug 135782.
Mats this is wfm winxp2004090507, do you still see the bug, screenshot?
It was fixed between 2004-08-25-05 -- 2004-08-26-05. One of these probably fixed
it: bug 252771, bug 252920, bug 133165, bug 253977

-> WORKSFORME
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Firefox 1.0PR; problem still visible ;]
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
The firefox release branch has a several month older gecko engine than the
trunk. Please use a nightly for testing layout bugs. If you still see the
problem with a nightly then reopen the bug. This means also that only ff 1.1
will have the fix but the mozilla suite 1.8.4a has already today the fixes.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: