[layout] block-in-inlines should stretch when justify-self is in use
Usually, justify-self causes an element to shrink-to-fit in the absence of a preferred size. But we have to let an inline child of the justified element stretch so that any of _its_ block children can still stretch to the justified grandparent. (cherry picked from commit 921f8733) Fixed: 374034249 Change-Id: I17b7fa89d84a76eacff2d2e6448db1b7bfe46a32 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5942095 Reviewed-by:David Baron <dbaron@chromium.org> Commit-Queue: David Grogan <dgrogan@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1370819} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5962296 Auto-Submit: David Grogan <dgrogan@chromium.org> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/branch-heads/6778@{#763} Cr-Branched-From: b21671ca-refs/heads/main@{#1368529}
Showing
- third_party/blink/renderer/core/layout/block_layout_algorithm.cc 29 additions, 24 deletions...arty/blink/renderer/core/layout/block_layout_algorithm.cc
- third_party/blink/web_tests/external/wpt/css/css-align/blocks/justify-self-block-in-inline.html 11 additions, 1 deletion...pt/css/css-align/blocks/justify-self-block-in-inline.html
Loading
Please register or sign in to comment