Open Bug 2065335 Opened 3 months ago Updated 5 days ago

flex container with `aspect-ratio` is too tall in Firefox (shrinkwraps content height), with width/height set to 100% and definite width but no definite height on parent

Categories

(Core :: Layout: Flexbox, defect)

defect

Tracking

()

Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox-esr153 --- wontfix
firefox154 --- wontfix
firefox155 --- wontfix
firefox156 --- wontfix

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, webcompat:platform-bug)

User Story

user-impact-score:10

STR:

  1. Load https://bug2052761.bmoattachments.org/attachment.cgi?id=9629123
  2. Look at the second column.

EXPECTED RESULTS:
In the second column, the red-bordered box should be rendered with 2:1 aspect ratio and end up 400px tall (not as tall as its entire blue column)

ACTUAL RESULTS:
Red-bordered box is as tall as its entire blue column.
(Also, the 5th column is ~infinite-height, which is a downstream effect via some additional ResizeObserver logic, as discussed in the testcase).

This is the root cause of bug 2052761.

This is a regression from bug 1760658 -- before that bug's patch landed (e.g. in Nightly 2022-05-02), we render the testcase nearly the same as Chrome currently renders it, with the exception of the red box in the first column, which Nightly 2022-05-02 renders too short (400px).

Triaging as S3 - webcompat bug 2052761 is S2-level, so we could treat this as an S2, but fortunately we have a pretty-trivial intervention we can ship over there as I just noted in bug 2052761 comment 10 - so we should do that as a stopgap, and ideally still fix this before too long.

Severity: S2 → S3
Summary: Element with `aspect-ratio` is too tall in Firefox → flex container with `aspect-ratio` is too tall in Firefox (shrinkwraps content height), with width/height set to 100% and definite width but no definite height on parent

Set release status flags based on info from the regressing bug 1760658

:boris, since you are the author of the regressor, bug 1760658, could you take a look?

For more information, please visit BugBot documentation.

User Story: (updated)

I may not have time to take a look at this now. Perhaps wait for the next Bug bash session or later.

Flags: needinfo?(boris.chiou)
User Story: (updated)
You need to log in before you can comment on or make changes to this bug.