Skip to content

[css-flexbox-1][editorial] Caption algo sections #11885 #12413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions css-flexbox-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,6 +2382,8 @@ Flex Layout Algorithm</h2>
<h3 id='box-manip'>
Initial Setup</h3>

Determine the [=flex items=], including anonymous items:

<ol start=1 class="layout-start">
<li id='algo-anon-box'>
<strong>Generate anonymous flex items</strong>
Expand All @@ -2391,6 +2393,9 @@ Initial Setup</h3>
<h3 id='line-sizing'>
Line Length Determination</h3>

Determine the length of the [=flex lines=] (and thus the space available to the items)
as follows:

<ol class=continue>
<li id='algo-available'>
<strong>Determine the available main and cross space for the flex items.</strong>
Expand Down Expand Up @@ -2503,6 +2508,9 @@ Line Length Determination</h3>
<h3 id='main-sizing'>
Main Size Determination</h3>

Lay out items into lines and flex them, resolving their [=main size=]
as follows:

<ol class=continue>
<li id='algo-line-break'>
<strong>Collect flex items into flex lines:</strong>
Expand Down Expand Up @@ -2545,6 +2553,10 @@ Main Size Determination</h3>
<h3 id='cross-sizing'>
Cross Size Determination</h3>

Resolve the [=cross size=] of each [=flex line=] and each [=flex item=]
as follows,
possibly looping back to apply [=main-axis=] space freed from collapsed items.

<ol class=continue>
<li id='algo-cross-item'>
<strong>Determine the <dfn>hypothetical cross size</dfn> of each item</strong>
Expand Down Expand Up @@ -2640,6 +2652,9 @@ Cross Size Determination</h3>
<h3 id='main-alignment'>
Main-Axis Alignment</h3>

Align the items within each line along the [=main axis=]
as follows:

<ol class=continue>
<li id='algo-main-align'>
<strong>Distribute any remaining free space.</strong>
Expand All @@ -2660,6 +2675,9 @@ Main-Axis Alignment</h3>
<h3 id='cross-alignment'>
Cross-Axis Alignment</h3>

Align the items within each line along the [=cross axis=]
as follows:

<ol class=continue>
<li id='algo-cross-margins'>
<strong>Resolve cross-axis <a value for=margin>auto</a> margins.</strong>
Expand Down