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
<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
+
<!-- This has to be a row flexbox whose item stretches and has vertical writing
27
+
mode to trigger:
28
+
* a cross size is needed to determine the main size (row flexbox's cross size
29
+
is vertical, which is the item's inline size because it has a vertical
30
+
writing mode)
31
+
* the flex item’s cross size is [...] not definite (if the item didn't
32
+
stretch, the definiteness of the container's cross size wouldn't matter
33
+
because the cross size would never be definite and the item would always get
34
+
fit-content)
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
+
<!-- This has to be a row flexbox whose item stretches and has vertical writing
27
+
mode to trigger:
28
+
* a cross size is needed to determine the main size (row flexbox's cross size
29
+
is vertical, which is the item's inline size because it has a vertical
30
+
writing mode)
31
+
* the flex item’s cross size is [...] not definite (if the item didn't
32
+
stretch, the definiteness of the container's cross size wouldn't matter
33
+
because the cross size would never be definite and the item would always get
34
+
fit-content)
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
+
<!-- This has to be a row flexbox whose item stretches and has vertical writing
27
+
mode to trigger:
28
+
* a cross size is needed to determine the main size (row flexbox's cross size
29
+
is vertical, which is the item's inline size because it has a vertical
30
+
writing mode)
31
+
* the flex item’s cross size is [...] not definite (if the item didn't
32
+
stretch, the definiteness of the container's cross size wouldn't matter
33
+
because the cross size would never be definite and the item would always get
34
+
fit-content)
35
+
-->
36
+
37
+
<p>Test passes if there is a filled green square.</p>
0 commit comments