Skip to content

Commit 93ae5f2

Browse files
committed
Tweaking the flexible length algo again.
--HG-- extra : rebase_source : 9391aaf7ce30cef8b588c132d56677cd0caa48d4
1 parent f977c24 commit 93ae5f2

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,17 +2216,21 @@ <h3 id=resolve-flexible-lengths><span class=secno>9.1. </span> Resolving
22162216
<dl>
22172217
<dt>Zero
22182218

2219-
<dd> Exit the algorithm.
2219+
<dd> If the free space is also zero, exit the algorithm. Otherwise, if
2220+
the free space is positive, freeze all items with max violations, and
2221+
if the free space is negative, freeze all items with min violations.
2222+
Reset all unfrozen items to their preferred size, and restart this
2223+
algorithm.
22202224

22212225
<dt>Positive
22222226

2223-
<dd> Freeze all the items with max violations, reset all other items to
2224-
their preferred size, and return to step 2.
2227+
<dd> Freeze all the items with min violations, reset all other items to
2228+
their preferred size, and restart this algorithm.
22252229

22262230
<dt>Negative
22272231

2228-
<dd> Freeze all the items with min violations, reset all other items to
2229-
their preferred size, and return to step 2.
2232+
<dd> Freeze all the items with max violations, reset all other items to
2233+
their preferred size, and restart this algorithm.
22302234
</dl>
22312235
</ol>
22322236

css3-flexbox/Overview.src.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,19 +1260,24 @@ <h3 id='resolve-flexible-lengths'>
12601260
<dl>
12611261
<dt>Zero
12621262
<dd>
1263-
Exit the algorithm.
1263+
If the free space is also zero, exit the algorithm.
1264+
Otherwise,
1265+
if the free space is positive, freeze all items with max violations,
1266+
and if the free space is negative, freeze all items with min violations.
1267+
Reset all unfrozen items to their preferred size,
1268+
and restart this algorithm.
12641269

12651270
<dt>Positive
12661271
<dd>
1267-
Freeze all the items with max violations,
1272+
Freeze all the items with min violations,
12681273
reset all other items to their preferred size,
1269-
and return to step 2.
1274+
and restart this algorithm.
12701275

12711276
<dt>Negative
12721277
<dd>
1273-
Freeze all the items with min violations,
1278+
Freeze all the items with max violations,
12741279
reset all other items to their preferred size,
1275-
and return to step 2.
1280+
and restart this algorithm.
12761281
</dl>
12771282
</ol>
12781283

0 commit comments

Comments
 (0)