Closed Bug 205673 Opened 22 years ago Closed 22 years ago

Child element's position incorrect, ignores parent element's margin

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 202449

People

(Reporter: mikecaines, Unassigned)

Details

(Keywords: regression)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla 1.4b (Refers to testcase) The position of the small blue div has changed with the newer Mozilla builds. It affects 1.4a & 1.4b, but not Firebird 0.5 (1.3a). The blue div's position is oblivious to the margin of its parent. The blue div's origin should be the same as its parent. (ie. positioned in the top left corner) Reproducible: Always Steps to Reproduce: Actual Results: Blue div's vertical placement is calculated incorrectly. Expected Results: Blue div's origin should be the same as that of parent div. If you change the parent div's margin to a smaller value (ie. -10px to -50px) the blue div's position is unchanged.
Attached file testcase
Attached image screenshot of bug
This seems like a regression?
Keywords: regression
http://www.w3.org/TR/CSS21/visuren.html#float-position says: 5. The outer top of a floating box may not be higher than the outer top of any block or floated box generated by an element earlier in the source document. Our implementation of this rule was fixed by bug 196919.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Reopening to dup to appropriate bug.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
*** This bug has been marked as a duplicate of 202449 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: