Closed
Bug 176941
Opened 22 years ago
Closed 22 years ago
floated paragraph appears with excessively large margins causing it to appear BELOW blocks occurring after it
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: benjmart, Assigned: dbaron)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021016 Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021016 The first paragraph is of a class that has float: left specified. However, it appears BELOW the second paragraph. This appears to be an error with the margins for the floated block. If I explicitly add margin: 0; to the style for the first paragraph, the bahvior is as expected. The CSS2 specs indicate margin widths should be 0 initially. Reproducible: Always Steps to Reproduce: 1. Open the attachment. 2. Notice the white space around the first paragraph. Actual Results: Paragraph 1 appears with too much whitespace above and below. Expected Results: Paragraph 1 should be near the top of the page (even with the top of paragraph 2, perhaps?)
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Comment 2•22 years ago
|
||
Reporter | ||
Updated•22 years ago
|
Attachment #104292 -
Attachment description: xhtml file demonstrating incorrect behavior → xhtml file demonstrating expected behavior (with margin: 0)
Assignee | ||
Comment 3•22 years ago
|
||
The default user-agent stylesheet for HTML has a top and bottom margin of 1em for P elements. This is the expected rendering of P in HTML based on tradition. Any user agent that changes this margin when only the 'float' property is specified is buggy. (To see that the margin exists, consider a testcase such as "<div style="border: medium solid;"><p>Paragraph</p></div>".)
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•