Commit 82c4b7e
[Masonry] Use max-content for stacking axis min-content
Per the proposal in [1], "Have the min-content size of the stacking
axis of a masonry container be the same as its max-content size (same
as the "stacking axis" of block layout)."
This CL implements this proposal and updates the expectation of the
test that kicked of this issue originally. It also fixes crashes in a
few tests where orthogonal items in a row masonry had a larger
min-content size than max-content size, leading to a check that
expected the container min-content to be <= to the max-content size.
[1] w3c/csswg-drafts#12843 (comment)
Bug: 343257585
Change-Id: I35eab974b3518968ee4d686dfbc0adafa43f9a43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7107410
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Alison Maher <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1539388}1 parent 6a4953f commit 82c4b7e
File tree
1 file changed
+2
-8
lines changed- css/css-grid/masonry/tentative/item-placement
1 file changed
+2
-8
lines changedLines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
0 commit comments