|
21 | 21 |
|
22 | 22 | <h1 id=head-box-flexible>Flexible Box Layout Module</h1>
|
23 | 23 |
|
24 |
| - <h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 22 March 2011</h2> |
| 24 | + <h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 8 April 2011</h2> |
25 | 25 |
|
26 | 26 | <dl>
|
27 | 27 | <dt>This version:
|
28 | 28 |
|
29 |
| - <dd><!-- <a href="http://www.w3.org/TR/2011/WD-css3-flexbox-20110322/">http://www.w3.org/TR/2011/WD-css3-flexbox-20110322/</a></dd> --> |
| 29 | + <dd><!-- <a href="http://www.w3.org/TR/2011/WD-css3-flexbox-20110408/">http://www.w3.org/TR/2011/WD-css3-flexbox-20110408/</a></dd> --> |
30 | 30 | <a
|
31 | 31 | href="http://dev.w3.org/csswg/css3-flexbox/">http://dev.w3.org/csswg/css3-flexbox/</a>
|
32 | 32 |
|
@@ -919,10 +919,18 @@ <h2 id=free-space-algorithm><span class=secno>8. </span> Free Space
|
919 | 919 | size, a maximum size, a preferred size, a positive flexibility, and a
|
920 | 920 | negative flexibility.
|
921 | 921 |
|
| 922 | + <dt><dfn id=total-free-space>total free space</dfn> |
| 923 | + |
| 924 | + <dd>The inner width or height of the flexbox (depending on the |
| 925 | + distribution round), which will be used to calculate the sizes of the <a |
| 926 | + href="#flexbox-item"><i>flexbox item</i></a>s. |
| 927 | + |
922 | 928 | <dt><dfn id=available-free-space>available free space</dfn>
|
923 | 929 |
|
924 |
| - <dd>The inner width/height of the flexbox minus the sum of the preflex |
925 |
| - sizes of all the relevant lengths. |
| 930 | + <dd>The <a href="#total-free-space"><i>total free space</i></a> minus the |
| 931 | + sum of the preferred sizes of all the relevant lengths, which is used to |
| 932 | + resolve <a href="#flex-tuple"><i>flex tuple</i></a>s into inflexible |
| 933 | + lengths. |
926 | 934 | </dl>
|
927 | 935 |
|
928 | 936 | <h3 id=initial-computation><span class=secno>8.1. </span> Initial
|
@@ -1174,8 +1182,13 @@ <h3 id=free-space-allocation-algorithm><span class=secno>8.6. </span> Free
|
1174 | 1182 | <p>This section describes the algorithm used to allocate free space to a
|
1175 | 1183 | set of flexible lengths. The inputs to this algorithm are a set of <a
|
1176 | 1184 | href="#flex-tuple"><i>flex tuple</i></a>s and a length representing the <a
|
1177 |
| - href="#available-free-space"><i>available free space</i></a>, which may be |
1178 |
| - positive or negative. The output is a set of inflexible lengths. |
| 1185 | + href="#total-free-space"><i>total free space</i></a>. The output is a set |
| 1186 | + of inflexible lengths. |
| 1187 | + |
| 1188 | + <p>Calculate the <a href="#available-free-space"><i>available free |
| 1189 | + space</i></a> by summing the preferred size of all the <a |
| 1190 | + href="#flex-tuple"><i>flex tuple</i></a>s and subtracting that value from |
| 1191 | + the <a href="#total-free-space"><i>total free space</i></a>. |
1179 | 1192 |
|
1180 | 1193 | <p>If the <a href="#available-free-space"><i>available free space</i></a>
|
1181 | 1194 | is 0, transform all the <a href="#flex-tuple"><i>flex tuple</i></a>s into
|
@@ -1422,6 +1435,9 @@ <h2 class=no-num id=index>Index</h2>
|
1422 | 1435 |
|
1423 | 1436 | <li>start, <a href="#flex-pack-start" title=start><strong>6.</strong></a>
|
1424 | 1437 |
|
| 1438 | + <li>total free space, <a href="#total-free-space" title="total free |
| 1439 | + space"><strong>8.</strong></a> |
| 1440 | + |
1425 | 1441 | <li>vertical flexbox, <a href="#vertical-flexbox" title="vertical
|
1426 | 1442 | flexbox"><strong>3.</strong></a>
|
1427 | 1443 | </ul>
|
|
0 commit comments