Open Bug 1547684 Opened 6 months ago Updated 3 months ago

Floating, recalculating ist not working properly on resize if two fixed width elements move into each other

Categories

(Core :: Layout: Floats, defect, P3)

66 Branch
defect

Tracking

()

People

(Reporter: dobiasch, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached image floating-bug.gif

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Steps to reproduce:

https://codepen.io/dst-dev/pen/KYYpEx

Check the codepen sample, see attached gif

Actual results:

Text flow doesn't get recalculated

Expected results:

Text should flow around figure

Component: Untriaged → Layout
Product: Firefox → Core

At first I thought this could be a regression from the recent reflow root optimizations, but it seems it's a very old bug.

It looks like we're not realizing that due to the auto-margin the resize of the container can affect how much the float overlaps the paragraph, though I haven't dug into why.

Status: UNCONFIRMED → NEW
Component: Layout → Layout: Floats
Ever confirmed: true
Priority: -- → P3

Regression window using attachment 9077387 [details]:

Last Good: 2006-12-07-04-trunk
First Bad: 2006-12-08-04-trunk
(http://archive.mozilla.org/pub/firefox/nightly/2006/12/ )

Regressed by:
Bug 300030 - (reflow-refactor) Refactor intrinsic width computation out of nsIFrame::Reflow

You need to log in before you can comment on or make changes to this bug.