Closed
Bug 230924
Opened 21 years ago
Closed 20 years ago
[MARGIN-C]{inc} Bottom margin not rendered when an initially hidden div is shown in onload function
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jsp, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
1.12 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040114 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040114 I have a div that I don't want visible unless script is enabled, so I make it "display: none" by default, then make it visible in my page's onload handler. This works just fine, except that the div's bottom margin isn't respected until the page is reflowed. Reproducible: Always Steps to Reproduce: 1. Load the test case. 2. Force the page to reflow (for example, by changing the text zoom, by changing the browser window width, or by showing or hiding a sidebar). Actual Results: After step 1, there is no white space between the two blocks of text. After step 2, there is. Expected Results: The white space between the two text blocks should have been rendered when the page was initially displayed.
For some reason, the testcase just rendered properly for the first time when I loaded the attachment. Reloading it causes it to behave as described. This clearly is not just a layout problem.
Comment 3•21 years ago
|
||
Confirming bug, 2003-01-09-07 trunk Linux.
Severity: normal → minor
Component: Layout → Layout: Block and Inline
Keywords: testcase
OS: Windows XP → All
QA Contact: core.layout → core.layout.block-and-inline
Summary: Bottom margin not rendered when an initially hidden div is shown in onload function → [MARGIN-C]{inc} Bottom margin not rendered when an initially hidden div is shown in onload function
Comment 4•20 years ago
|
||
Fixed by checkin for bug 257612
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•