Closed Bug 1685428 Opened 4 years ago Closed 2 months ago

[css-grid] Note implies losing an aspect-ratio when it shouldn't?

Categories

(Core :: Layout: Grid, defect)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: TYLin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

A resolution was made for csswg-drafts/#5713.

[css-grid] Note implies losing an aspect-ratio when it shouldn't?

  • RESOLVED: stretch alignment doesn't disable the aspect ratio. It can distort it if the other axis is constrained

Discussion.

Mats, do you have cycles to look at this (or mentor it if someone else takes it)? For now, it'd be great if you could double-check that this change seems reasonable to you. See details in the csswg-drafts issue (and discussion minutes in the comment https://github.com/w3c/csswg-drafts/issues/5713#issuecomment-755791551 )

There are some existing web-platform tests that require the "old" behavior here, which Ian Kilpatrick (who filed the csswg-drafts issue) has volunteered to fix.

Flags: needinfo?(mats)

(In reply to Daniel Holbert [:dholbert] from comment #1)

There are some existing web-platform tests that require the "old" behavior here, which Ian Kilpatrick (who filed the csswg-drafts issue) has volunteered to fix.

(Following up: https://chromium-review.googlesource.com/c/chromium/src/+/2611567 is where Ian is updating these tests.)

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit BugBot documentation.

Flags: needinfo?(MatsPalmgren_bugz)

This patch preserves the aspect-ratio when stretching replaced elements in only
one axis in grid layout, under the condition where the preferred size properties
in both axes behave as 'auto'.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

In grid-item-intrinsic-ratio-stretch-001-ref.html and
grid-item-intrinsic-ratio-stretch-004-ref.html, I tweaked the unsafe/safe
keyword for some sub-references to match their counterpart in test files.

The sizes in grid-item-intrinsic-ratio-normal-{001,002,003}-ref.html and
grid-item-video-stretch-002-ref.html are updated via the <script> at the end
of the tests.

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6f574d956bef Part 1 - Preserve aspect-ratio when stretching replaced element in grid layout. r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/187ec787120a Part 2 - Update test expectations. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Duplicate of this bug: 1850042
Duplicate of this bug: 1719002
Duplicate of this bug: 1837560
Blocks: 1920280
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: