Skip to content

Commit 321ba4a

Browse files
[css-flex] Fix auto min size and flex basis for some a-r items
Transferred size suggestion and max-content size could go below border_padding for box-sizing:border-box aspect-ratio elements. This patch just floors those values by border_padding. Fixed: 1240795 Change-Id: I5a04a80905c13f96c97413b1c1681707585a9a56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3187278 Reviewed-by: Ian Kilpatrick <[email protected]> Reviewed-by: Christian Biesinger <[email protected]> Commit-Queue: David Grogan <[email protected]> Cr-Commit-Position: refs/heads/main@{#927472}
1 parent 955f430 commit 321ba4a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<title>aspect-ratio flex item</title>
3+
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-automatic">
4+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
5+
<meta name="assert" content="There's enough space for padding after transferring flex-imposed definite height through the aspect ratio for a border-box flex item.">
6+
7+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
8+
<div style="display: flex; height: 50px;">
9+
<div style="padding-left: 100px; box-sizing: border-box; aspect-ratio: 1/1; background: green;"></div>
10+
</div>
11+
<div style="width: 100px; height: 50px; background: green"></div>

0 commit comments

Comments
 (0)