Closed Bug 311935 Opened 20 years ago Closed 18 years ago

DIV with 'overflow' has margin-left added to left float's position

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: samuel.sidler+old, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

Splitting from bug 289577. This is a regression occurring between 2004-09-04 and 2004-09-05. The bonsai link below gives the checkins for that window of time. Testcase in next comment.
Attached file Testcase
As I said in the other bug, I'm reasonably confident even without testing that your alleged regression window is simply an artefact of the testcase's use of 'overflow-x' rather than 'overflow'. Also, bug 289577 comment 10 (dbaron) says: The overflow property actually should sometimes affect layout (especially in the presence of floats), because a DIV with 'overflow' non-visible establishes a new block formatting context. That said, the testcase above does look wrong. and bug 289577 comment 12 (bzbarsky) says: The layout of Simon's testcase (and Samuel's too) is affected by CSS 2.1, section 9.5, which says: The margin box of a table, a block-level replaced element, or an element in the normal flow that establishes a new block formatting context (such as an element with 'overflow' other than 'visible') must not overlap any floats in the same block formatting context as the element itself. If necessary, implementations should clear the said element by placing it below any preceding floats, but may place it adjacent to such floats if there is sufficient space. The only possible bug on that testcase is that there is not "sufficient space" and so we should be clearing, not shifting to the right.
(In reply to comment #3) > As I said in the other bug, I'm reasonably confident even without testing that > your alleged regression window is simply an artefact of the testcase's use of > 'overflow-x' rather than 'overflow'. Changing 'overflow-x' to 'overflow' yields the same results in the testcase so this doesn't appear to be exclusive to overflow-x.
> Changing 'overflow-x' to 'overflow' yields the same results in the testcase Yes, but does it yield the same "regression window"? The only "improvement" here would be to clear things (move the float down past that div).
this doesn't seem like a critical stop the press type bug. David/bz, please re-nominate and add some commentary if you disagree.
Flags: blocking1.8rc1? → blocking1.8rc1-
Like dbaron said, the only bug here is that if you make your window small enough that the overflow:hidden box would go off the side of the screen, it should wrap to below the float.
Which is bug 290146.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: