Implement aspect-ratio for grid
Categories
(Core :: Layout: Grid, enhancement, P2)
Tracking
()
People
(Reporter: boris, Assigned: boris)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file, 1 obsolete file)
Implement aspect-ratio for display: grid.
Assignee | ||
Comment 1•6 months ago
|
||
Basically, we support aspect-ratio
on Grid layout already, but I'm still checking some special cases, like Automatic minimum size of grid items with aspect-ratio
. We don't have wpt for gris layout for aspect-ratio
now, so I will add some in this bug.
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 2•6 months ago
|
||
Assignee | ||
Comment 3•5 months ago
|
||
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 4•2 months ago
|
||
Need to check this issue:
https://codepen.io/jensimmons/pen/JjRZVwg?editors=1100
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Comment 5•2 months ago
|
||
(In reply to Boris Chiou [:boris] from comment #4)
Need to check this issue:
https://codepen.io/jensimmons/pen/JjRZVwg?editors=1100
Looks like we only apply aspect-ratio on those grid items (nsBlockFrame), but not on nsGridContainerFrame, so the grid layout looks weird in this case.
Assignee | ||
Updated•28 days ago
|
Assignee | ||
Updated•28 days ago
|
Updated•28 days ago
|
Assignee | ||
Comment 6•18 days ago
|
||
Need to update:
https://software.hixie.ch/utilities/js/live-dom-viewer/saved/8914
grid item: <div style="height: 100px; justify-self: stretch; aspect-ratio: 1/1; background: green;"></div>
we should update to stretch, instead of using ar.
Updated•13 days ago
|
Assignee | ||
Updated•13 days ago
|
Description
•