Closed Bug 1421414 Opened 7 years ago Closed 7 years ago

[css-flexbox] Trying to vertically center a position:fixed element fails on initial render

Categories

(Core :: Layout, defect, P3)

59 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1386654
Tracking Status
firefox59 --- affected

People

(Reporter: amla70, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

The test page shows a <dialog> element placed inside a div with flex centering. In Firefox the dialog is usually displayed at the top of the page (with half of the dialog beyond the top), and just resizing the page or hovering on the elements in the dev inspector fixes the problem.

Using a plain div instead of dialog doesn't exhibit the same behavior.
I stand corrected. 
The problem is not restricted to the <dialog> element, it can fail also with a <div>, but in the simplified testcase I thought that it worked fine with a div.
Keywords: testcase
OS: Unspecified → All
Hardware: Unspecified → All
Summary: Trying to vertically center a dialog element fails on initial render → [css-flexbox] Trying to vertically center a position:fixed element fails on initial render
Priority: -- → P1
Flags: needinfo?(dholbert)
Priority: P1 → P3
This is fixed in latest trunk.

mozregression --find-fix gives this fix range...
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1599fb3b361022c56638a1570272068dc69eb268&tochange=a6fb6d5f3b5e45874f5d2f0ddb4b308d263d382e

...which has the highly-related-sounding bug 1386654.  So, I'm going to assume this is a duplicate of that bug.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(dholbert)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: