Closed Bug 288246 Opened 20 years ago Closed 20 years ago

incorrect rendering table after changing css display property from "none" to "inline"

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: i_am_ed, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

After css "display" property changing from "none" to "inline" - table row must
appear at the same place as it was.

Reproducible: Always

Steps to Reproduce:
1.click "hide/show row" button
2.click "hide/show row" button
3.

Actual Results:  
incorrect table row rendering after step2

Expected Results:  
After css "display" property changing from "none" to "inline" - table row must
appear at the same place as it was.

This error appears in other bug request but was described insufficiently.
The correct display type for <tr>s is table-row not inline, if you change their
display type they will naturally display differently. Since Internet Explorer
doesn't support display: table-row the best cross-browser solution is to swap
between display="none" and display="", e.g.:

document.getElementById('row2').style.display=show?'':'none'

p.s. See Bug 97506 for a related issue.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.