Open Bug 1476812 Opened 6 years ago Updated 8 days ago

left:auto on a position:absolute display:inline-block element shouldn't consider floats after the inline-block that would have moved it

Categories

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

defect

Tracking

()

Tracking Status
firefox63 --- affected

People

(Reporter: twisniewski, Unassigned)

References

Details

Attachments

(2 files)

Attached file test.html
In the attached test-case, Firefox pushes the red element off-screen by the width of the gray element. Other browsers place the red element's right edge along the right edge of the viewport.
Flags: webcompat?
Looks like there's an incremental reflow bug somewhere there. If I toggle `position` and `display` on the `.menubar` element it doesn't take effect always immediately, which looks wrong.

I don't know what we're thinking to make the width: 100% overflow the viewport somehow...
.menubar is using its hypothetical position, since it has top:auto and left:auto.  It seems reasonable that the left:auto position puts it to the right of the float, since that's where it would be if it weren't positioned.
Component: Layout → Layout: R & A Pos
Chrome will consider the float for the hypothetical position if it comes before the inline-block, but not if it comes after.
Summary: Element is not painted flush against right edge of screen as it does in other browsers. → left:auto on a position:absolute display:inline-block element shouldn't consider floats after the inline-block that would have moved it
Attachment #8993444 - Attachment description: 1476812.html → set of four simpler tests
Priority: -- → P3

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

(fwiw, the site has been redesigned and the original bug is no longer break the page)

Webcompat Priority: ? → ---
Severity: normal → S3

Fancourier has also updated their design, and this bug no longer seems to apply there. Since we know of no other sites broken by this right now, unsetting webcompat flags.

Flags: webcompat?
Whiteboard: [webcompat]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: