Closed Bug 2097953 Opened 1 day ago Closed 20 hours ago

Removing `align-content: center` on a block container does not recalculate layout

Categories

(Core :: Layout: Flexbox, defect)

Firefox 162
defect

Tracking

()

RESOLVED DUPLICATE of bug 2092951

People

(Reporter: sean, Unassigned)

Details

Steps to reproduce

  1. Place a single text node into a block container with no line breaks.
  2. Set a definite height (i.e. 100px) for the block container.
  3. Apply align-content: center to the block container.
  4. Observe that the text centers vertically.
  5. Remove align-content: center.
  6. Observe the text not return to its original position.

Actual results

The text node remains vertically centered despite the container's computed align-content being normal.

Expected results

The block container should immediately perform layout when the computed value of align-content changes from center to normal.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Flexbox' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Flexbox
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 20 hours ago
Duplicate of bug: 2092951
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.