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
On a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> whose <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css-overflow-3/#overflowtitle=overflow>overflow</a> is <del>not</del><spanclass=cssdata-link-for=overflow>visible</span><ins>in the <adata-link-type=dfnhref=#main-axistitle="main axis">main axis</a></ins>,
3047
+
<p>On a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> whose <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css-overflow-3/#overflowtitle=overflow>overflow</a> is <del>not</del><spanclass=cssdata-link-for=overflow>visible</span><ins>in the <adata-link-type=dfnhref=#main-axistitle="main axis">main axis</a></ins>,
<p>On a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> whose <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css-overflow-3/#overflowtitle=overflow>overflow</a> is not <spanclass=cssdata-link-for=overflow>visible</span>,
<del>this keyword specifies as the minimum size the smaller of:</del>
3060
+
<del>this keyword specifies as the minimum size the smaller of:</del></p>
3061
3061
<del>
3062
-
</del><ul>
3062
+
<ul>
3063
3063
<li>the <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-inline-sizetitle="min-content size">min-content size</a>, or
3064
3064
<li>the computed <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-widthtitle=width>width</a>/<aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-heighttitle=height>height</a>, if that value is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>.
the <aclass=cssdata-link-type=maybehref=#valdef-min-width-min-height-autotitle=auto>auto</a> value of <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-min-heighttitle=min-height>min-height</a> and <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-max-heighttitle=max-height>max-height</a>
3087
3088
does not factor into the percentage size resolution of the box’s contents.
3088
3089
For example, a percentage-height block whose flex item parent has
will size itself against <aclass=cssdata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-heighttitle=height>height: 120em</a> regardless of the impact
3091
-
that <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-min-heighttitle=min-height>min-height</a> might have on the used size of the flex item.
3092
+
that <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visudet.html#propdef-min-heighttitle=min-height>min-height</a> might have on the used size of the flex item.</ins>
Defined <adata-link-type=dfnhref=#flex-itemtitle="flex items">flex items</a> with a <adata-link-type=dfnhref=#definitetitle=definite>definite</a><adata-link-type=dfnhref=#flex-basistitle="flex basis">flex basis</a>
3105
3103
to also be <adata-link-type=dfnhref=#definitetitle=definite>definite</a> in the <adata-link-type=dfnhref=#main-axistitle="main axis">main axis</a>,
then positioning each absolutely-positioned child</del>
3179
3179
<ins>determined such that the child is positioned</ins>
3180
3180
as if it were the sole flex item in the flex container,
3181
-
assuming both the child and the flex container were fixed-size boxes of their used size.
3181
+
assuming both the child and the flex container were fixed-size boxes of their used size.</p>
3182
3182
3183
-
<ins></ins><p>In other words, the static position of an absolutely positioned child of a flex container
3183
+
<ins><p>In other words, the static position of an absolutely positioned child of a flex container
3184
3184
is determined <em>after flex layout</em>
3185
3185
by setting the child’s <adata-link-type=dfnhref=#static-position-rectangletitle="static-position rectangle">static-position rectangle</a> to the flex container’s content box,
3186
3186
then aligning the absolutely positioned child within this rectangle
3187
3187
according to the <aclass=propertydata-link-type=propdeschref=#propdef-justify-contenttitle=justify-content>justify-content</a> value of the flex container and the <aclass=propertydata-link-type=propdeschref=#propdef-align-selftitle=align-self>align-self</a> value of the child itself.
<p>An absolutely-positioned child of a <adata-link-type=dfnhref=#flex-containertitle="flex container">flex container</a> does not participate in flex layout
3429
-
beyond the <ahref=#algo-flex-order>reordering step</a>.
3429
+
beyond the <ahref=#algo-flex-order>reordering step</a>.</p>
3430
3430
3431
3431
<del>
3432
-
</del><p>
3432
+
<p>
3433
3433
However, if both <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css3-positioning/#lefttitle=left>left</a> and <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css3-positioning/#righttitle=right>right</a> or both <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css3-positioning/#toptitle=top>top</a> and <aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/css3-positioning/#bottomtitle=bottom>bottom</a> are <aclass=cssdata-link-type=maybehref=#valdef-min-width-min-height-autotitle=auto>auto</a>,
3434
3434
then the used value of those properties
3435
3435
are computed from its static position, as follows:
<aclass=cssdata-link-type=propdeschref=#propdef-justify-contenttitle=justify-content>justify-content: space-around</a> or <aclass=cssdata-link-type=propdeschref=#propdef-justify-contenttitle=justify-content>justify-content: space-between</a>
3486
3486
are suppressed around the hypothetical item:
3487
3487
between it and the next item if there is a real item after it,
3488
-
else between it and the previous item (if any) if there isn’t.
3489
-
3488
+
else between it and the previous item (if any) if there isn’t.</p>
3489
+
</del>
3490
3490
<ins>
3491
-
</ins><p>Its static position is calculated by first doing full flex layout
3491
+
<p>Its static position is calculated by first doing full flex layout
3492
3492
without the absolutely-positioned children,
3493
3493
then positioning each absolutely-positioned child
3494
3494
as if it were the sole <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> in the <adata-link-type=dfnhref=#flex-containertitle="flex container">flex container</a>,
Setting <spanclass=css>justify-content:center</span> on the <adata-link-type=dfnhref=#flex-containertitle="flex container">flex container</a>, however,
0 commit comments