Closed Bug 208888 Opened 21 years ago Closed 21 years ago

Setting display style to none on table rows does not render table correctly

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 143397

People

(Reporter: mark, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030529 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030529 Switching on and off the odd and even rows of a table in Javascript using the display.style attribute, renders the table ever wider at each switch in visibility. The script at http://www.jacobsm.com/invistblrows.htm demonstrates this, and the subsequent loose packing of the table rows. DIVs switched on and off using this method work fine though! Reproducible: Always Steps to Reproduce: 1. Visit http://www.jacobsm.com/invistblrows.htm 2. Click the Even button, then the Odd Button 3. Repeat step 2 over and over again, and the table becomes ever wider 4. Also note that the rows are loosely laid out Actual Results: The table becomes ever wider and the rows are loosely laid out. Expected Results: The table should remain its original width and the table height should be such that the visible rows neatly fill it with no slack space.
in the URL cited, you're setting the display property of the table rows to "block"; per the CSS spec, table cells are to be assigned the value "table-cell": http://www.w3.org/TR/REC-CSS2/tables.html#value-def-table-cell an example that works per the spec is available at: http://blue.nutrition.tufts.edu/bugzilla/208888.html recommend -> INVALID
Agreed. See comment #1 on how this is being used incorrectly, and a possible alternate solution.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Reopening. We should be handling the anonymous table frame construction more gracefully.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
And marking duplicate of the bug that covers this problem. *** This bug has been marked as a duplicate of 143397 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → DUPLICATE
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.