You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug 1574674 [wpt PR 18514] - [LayoutNG] Lay out flex items with ShrinkToFit in more cases, a=testonly
Automatic update from web-platform-tests
[LayoutNG] Lay out flex items with ShrinkToFit in more cases
A row flex box's cross size of {fit,min,max}-content isn't definite,
which affects the inline size of orthogonal children.
Bug: 845235
Change-Id: Id08a1cf6d23e9e295e87c52d426079bc7e886b74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758992
Reviewed-by: Christian Biesinger <cbiesingerchromium.org>
Commit-Queue: David Grogan <dgroganchromium.org>
Cr-Commit-Position: refs/heads/master{#689232}
--
wpt-commits: a1cec169e027d234248e36e74c29b1efae1b528c
wpt-pr: 18514
UltraBlame original commit: 6fc8a85865f16548350106db4540573e56ac6ce3
<metaname="assert" content="A flex container's block cross size of min-content is treated as indefinite when setting fit-content on an item for flex base sizing">
7
+
8
+
<style>
9
+
x-flexbox {
10
+
display: flex;
11
+
height: min-content;
12
+
}
13
+
14
+
.fit-content-item {
15
+
background: green;
16
+
width:100px;
17
+
writing-mode: vertical-lr;
18
+
}
19
+
20
+
.height-setting-item {
21
+
height:100px;
22
+
}
23
+
24
+
</style>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
<p>Test passes if there is a filled green square.</p>
<metaname="assert" content="A flex container's block cross size of max-content is treated as indefinite when setting fit-content on an item for flex base sizing">
7
+
8
+
<style>
9
+
x-flexbox {
10
+
display: flex;
11
+
height: max-content;
12
+
}
13
+
14
+
.fit-content-item {
15
+
background: green;
16
+
width:100px;
17
+
writing-mode: vertical-lr;
18
+
}
19
+
20
+
.height-setting-item {
21
+
height:100px;
22
+
}
23
+
24
+
</style>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
<p>Test passes if there is a filled green square.</p>
<metaname="assert" content="A flex container's block cross size of fit-content is treated as indefinite when setting fit-content on an item for flex base sizing">
7
+
8
+
<style>
9
+
x-flexbox {
10
+
display: flex;
11
+
height: fit-content;
12
+
}
13
+
14
+
.fit-content-item {
15
+
background: green;
16
+
width:100px;
17
+
writing-mode: vertical-lr;
18
+
}
19
+
20
+
.height-setting-item {
21
+
height:100px;
22
+
}
23
+
24
+
</style>
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
<p>Test passes if there is a filled green square.</p>
0 commit comments