[css-grid] Note implies losing an aspect-ratio when it shouldn't?
Categories
(Core :: Layout: Grid, defect)
Tracking
()
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
Comment 1•4 years ago
|
||
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.
Comment 2•4 years ago
|
||
(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.)
Updated•4 years ago
|
Comment 3•2 years ago
|
||
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.
Assignee | ||
Comment 4•2 months ago
|
||
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'.
Updated•2 months ago
|
Assignee | ||
Comment 5•2 months ago
|
||
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.
Comment 7•2 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6f574d956bef
https://hg.mozilla.org/mozilla-central/rev/187ec787120a
Description
•