Open Bug 1550158 Opened 5 years ago Updated 13 days ago

Blink and Gecko differ on where to flow absolutely-positioned element in a tight layout

Categories

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

defect

Tracking

()

UNCONFIRMED

People

(Reporter: twisniewski, Unassigned)

References

()

Details

(Keywords: testcase, Whiteboard: [webcompat])

Attachments

(1 file)

In the attached test-case, two select boxes are intended to be hidden with opacity:0, and have a replacement visual overlaid on top of them.

The visual overlays are 320px wide in a 320px wide container, and the selects are absolutely positioned, so it seems that they ought to end up in the right places, as per Chrome's layout.

However, Firefox places the second select outside (to the right) of the container, as though there is room for it on the flow-line next to the first 320px-wide overlay.

This is causing breakage of the select boxes at www.nextgreencar.com, as reported at webcompat.com

Flags: webcompat?
Attached file test.html

So this is about where do we guess the hypothetical position is.

If instead of a <select> you use a <div> like:

<div style="position: absolute;width: 80px;height: 40px;background: green;display: inline-block;"></div>

Then toggling display and hovering over devtools I can see the <div> jump around.

Removing the whitespace in-between the elements makes Chrome render it the same as Gecko.
Seems like a pretty weird edge case to me.

Severity: normal → minor
Status: NEW → UNCONFIRMED
Ever confirmed: false
Keywords: testcase
OS: Unspecified → All
Priority: -- → P4
Hardware: Unspecified → All
Webcompat Priority: --- → ?
Flags: webcompat?
Webcompat Priority: ? → revisit
Severity: minor → S4
Webcompat Priority: revisit → P2

ni? Tom for a potential WebCompat KB entry.

Flags: needinfo?(twisniewski)

The site issue in https://webcompat.com/issues/27547 is no longer reproducible as it's redirecting to a different site with updated design, resetting webcompat priority. The test case is still presenting a difference in Chrome and Firefox.

Webcompat Priority: P2 → ---
Flags: needinfo?(twisniewski)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: