Closed Bug 338735 Opened 14 years ago Closed 11 years ago
toggling a table cell with display: block gives distorted result
I can confirm this with latest trunk. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060521 Minefield/3.0a1
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → Trunk
Table cells should be display: table-cell for the behavior you want, not display: block. For compatibility with IE, try toggling between "none" and "" instead of "" and "block". Suggest INVALID.
The first click and the third should result in the same layout...
Component: Layout → Layout: Tables
OS: Windows XP → All
QA Contact: layout → layout.tables
(In reply to comment #4) > The first click and the third should result in the same layout... Are you accounting for the anonymous content generated when setting a child of a display: table-row element to something other than display: table-cell? http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes
The <td id="nieuwsbalk"> element have the following (computed) display values: initial: none 1 click: block 2 clicks: none 3 clicks: block It never has table-row or table-cell as computed value. There are pseudo frames generated around it though as can be seen in this frame dump. After click 2 the table-cell pseudo frame (marked red) should be removed I think, so we get back to the initial state. I think this is what bug 162063 is about.
I have the same result when toggling between display:none and display:inline. My cell works as expected the first time, but after being hidden and then shown again. Should I open a new bug or is adding this comment sufficient?
Fixed by checkin for bug 162063. Added test.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.