mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
Automatic update from web-platform-tests
[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 <eae@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665663}
--
wp5At-commits: 87fea094d82bac92f1ab5585aca19a785f841c23
wpt-pr: 17151
26 lines
659 B
HTML
26 lines
659 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Flexbox Test: height: min-content is sized correctly</title>
|
|
<link rel="author" title="Google LLC" href="http://www.google.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" />
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
|
|
<style>
|
|
#flex {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100px;
|
|
}
|
|
|
|
#item {
|
|
min-height: 30px;
|
|
height: min-content;
|
|
background: green;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
|
|
<div id="flex">
|
|
<div id="item">
|
|
<div style="height: 100px; width: 100px;"></div>
|
|
</div>
|
|
</div>
|