Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 87fea09

Browse files
cbiesingerchromium-wpt-export-bot
authored andcommitted
[css-flexbox] Do layout for block axis intrinsic sizes
In the block axis, we do have to do layout for {min,max,fit}-content so we can determine the intrinsic size. MainAxisLengthIsDefinite here is called from ConstructAndAppendFlexItem via ChildHasIntrinsicMainAxisSize (which needs a better name). Bug: 968940 Change-Id: If74e6098280077fefe607e2c5b1f70f133ca1032 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1641510 Reviewed-by: Emil A Eklund <[email protected]> Reviewed-by: David Grogan <[email protected]> Commit-Queue: Christian Biesinger <[email protected]> Auto-Submit: Christian Biesinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#665663}
1 parent 48e9cae commit 87fea09

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<title>CSS Flexbox Test: height: min-content is sized correctly</title>
3+
<link rel="author" title="Google LLC" href="http://www.google.com">
4+
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" />
5+
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
6+
<style>
7+
#flex {
8+
display: flex;
9+
flex-direction: column;
10+
width: 100px;
11+
}
12+
13+
#item {
14+
min-height: 30px;
15+
height: min-content;
16+
background: green;
17+
}
18+
</style>
19+
20+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
21+
22+
<div id="flex">
23+
<div id="item">
24+
<div style="height: 100px; width: 100px;"></div>
25+
</div>
26+
</div>

0 commit comments

Comments
 (0)