Closed
Bug 284800
Opened 20 years ago
Closed 20 years ago
Changing the STYLE attribute's DISPLAY value on a TR from none to block or inline causes awkward display
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: scunliffe, Assigned: bugzilla)
Details
Attachments
(1 file)
|
851 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
In a 2 or more column, 2 or more row table, if a row, has the attribute
style="display:none;", it will not display (desired)
However if a JS alters it, to display = block; or display = inline; it appears,
But not within the constraints of the parent table. (e.g. if the width of the
table is larger than the row's contents, then the row is shown, left justified,
not filling the gap.
Note: (depending on styles applied, an additional border appears)
Reproducible: Always
Steps to Reproduce:
1. Create a table of min 2 cols, min 2 rows.
2. Add data to the cells of varying lengths
3. On a row, with relatively short data, add a style="display:none;" attribute
4. Add JS to modify the above attribute item to 'block' or 'inline'
Actual Results:
Row appears, but not as expected.
Expected Results:
Render it, as it would, had there never been a style="display:none;" attribute set.
This sample file shows the quirkyness of the behaviour... it apears that the
table row, is constricted to the parent tables' first column width?
Note, that repeatingly altering the property, makes the content "grow".
Comment 2•20 years ago
|
||
Table rows are neither block nor inline, so it's not too surprising that they
don't work well when forced into it. Instead, for Gecko setting display =
"table-row" works fine, or for cross-browser, display = ""
*** This bug has been marked as a duplicate of 97506 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•