Closed Bug 2015458 Opened 7 months ago Closed 7 months ago

Delayed layout update: elements with margin:auto initially positioned incorrectly

Categories

(Core :: Layout, defect)

Firefox 147
Desktop
Unspecified
defect

Tracking

()

RESOLVED DUPLICATE of bug 2017440

People

(Reporter: kirill.bodunoff, Unassigned)

Details

Firefox for Android

Steps to reproduce:

  1. Open the reproduction example:
    https://codepen.io/Tech-Spark/pen/azZQdOd

  2. Trigger modal rendering.

  3. Observe initial modal position.

Actual results:

Modal window initially renders aligned to the left side instead of centered.

After approximately 1–5 seconds, layout recalculates and modal moves to the correct centered position.

This causes visible layout shifting and UI flickering.

Expected results:

Modal window should appear centered immediately after rendering without any delayed layout recalculation.

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox for Android
Product: Firefox for Android → Firefox
Hardware: Unspecified → Desktop
Component: General → Layout
Product: Firefox → Core

A patch just landed in bug 2017440 which should fix this (in Nightly 149).

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Duplicate of bug: 2017440
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.