Closed Bug 1780475 Opened 2 years ago Closed 2 years ago

Obey contain-intrinsic-size in ContainSizeAxes::ContainIntrinsicSize and ContainSizeAxes::ContainSize

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(1 file, 1 obsolete file)

ContainSizeAxes::ContainIntrinsicSize and ContainSizeAxes::ContainSize just use 0 for the contained axes.

They should use the values coming from contain-intrinsic-size.

This way ContainSizeAxes will be able to use it.
There should be no observable change in behavior.

ContainSizeAxes::ContainSize and ContainSizeAxes::ContainIntrinsicSize
were just using 0 for the axes with size containment, now they will take
contain-intrinsic-width and contain-intrinsic-height into account.

There are various places that aren't currently using these functions, so
the effect of this patch is rather minimal, but some cases of the new
test are now passing.

Depends on D152354

Attachment #9286369 - Attachment is obsolete: true
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2120ff6ddc22 Obey contain-intrinsic-size in ContainSizeAxes. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34934 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1780838
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: