Skip to content

Commit 8c555fd

Browse files
committed
Update spec and diagrams with the new flex-start/flex-end keywords, per WG decision.
1 parent 7cfbbd5 commit 8c555fd

5 files changed

Lines changed: 77 additions & 67 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 57 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040

4141
<h1 id=head-box-flexible>CSS Flexible Box Layout Module</h1>
4242

43-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 31 May 2012</h2>
43+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft, 1 June 2012</h2>
4444

4545
<dl>
4646
<dt>This version:
47-
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120531/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120531/</a>-->
47+
<!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-flexbox-20120601/">http://www.w3.org/TR/2012/WD-css3-flexbox-20120601/</a>-->
4848

4949

5050
<dd><a
@@ -1898,7 +1898,7 @@ <h3 id=justify-content-property><span class=secno>8.2. </span> Axis
18981898
<tr>
18991899
<th><a href="#values">Value</a>:
19001900

1901-
<td>start | end | center | space-between | space-around
1901+
<td>flex-start | flex-end | center | space-between | space-around
19021902

19031903
<tr>
19041904
<th>Initial:
@@ -1949,8 +1949,8 @@ <h3 id=justify-content-property><span class=secno>8.2. </span> Axis
19491949
over the alignment of items when they overflow the line.
19501950

19511951
<dl>
1952-
<dt><dfn id=justify-content-start><code class=css>start</code></dfn>
1953-
1952+
<dt><dfn id=justify-content-flex-start><code
1953+
class=css>flex-start</code></dfn>
19541954

19551955
<dd> <a href="#flex-item"><i>Flex items</i></a> are packed toward the
19561956
start of the line. The <a href="#main-start"><i>main-start</i></a> margin
@@ -1959,7 +1959,8 @@ <h3 id=justify-content-property><span class=secno>8.2. </span> Axis
19591959
of the line, and each subsequent <a href="#flex-item"><i>flex
19601960
item</i></a> is placed flush with the preceding item.
19611961

1962-
<dt><dfn id=justify-content-end><code class=css>end</code></dfn>
1962+
<dt><dfn id=justify-content-flex-end><code
1963+
class=css>flex-end</code></dfn>
19631964

19641965
<dd> <a href="#flex-item"><i>Flex items</i></a> are packed toward the end
19651966
of the line. The <a href="#main-end"><i>main-end</i></a> margin edge of
@@ -1987,8 +1988,8 @@ <h3 id=justify-content-property><span class=secno>8.2. </span> Axis
19871988
<dd> <a href="#flex-item"><i>Flex items</i></a> are evenly distributed in
19881989
the line. If the leftover free-space is negative or there is only a
19891990
single <a href="#flex-item"><i>flex item</i></a> on the line, this value
1990-
is identical to ‘<a href="#align-content-start"><code
1991-
class=css>start</code></a>’. Otherwise, the <a
1991+
is identical to ‘<a href="#align-content-flex-start"><code
1992+
class=css>flex-start</code></a>’. Otherwise, the <a
19921993
href="#main-start"><i>main-start</i></a> margin edge of the first <a
19931994
href="#flex-item"><i>flex item</i></a> on the line is placed flush with
19941995
the <a href="#main-start"><i>main-start</i></a> edge of the line, the <a
@@ -2039,7 +2040,7 @@ <h3 id=align-items-property><span class=secno>8.3. </span> Cross-axis
20392040
<tr>
20402041
<th><a href="#values">Value</a>:
20412042

2042-
<td>start | end | center | baseline | stretch
2043+
<td>flex-start | flex-end | center | baseline | stretch
20432044

20442045
<tr>
20452046
<th>Initial:
@@ -2088,7 +2089,7 @@ <h3 id=align-items-property><span class=secno>8.3. </span> Cross-axis
20882089
<tr>
20892090
<th><a href="#values">Value</a>:
20902091

2091-
<td>auto | start | end | center | baseline | stretch
2092+
<td>auto | flex-start | flex-end | center | baseline | stretch
20922093

20932094
<tr>
20942095
<th>Initial:
@@ -2154,13 +2155,15 @@ <h3 id=align-items-property><span class=secno>8.3. </span> Cross-axis
21542155
alignments are defined as:
21552156

21562157
<dl>
2157-
<dt><dfn id=align-items-start><code class=css>start</code></dfn>
2158+
<dt><dfn id=align-items-flex-start><code
2159+
class=css>flex-start</code></dfn>
21582160

21592161
<dd> The <a href="#cross-start"><i>cross-start</i></a> margin edge of the
21602162
<a href="#flex-item"><i>flex item</i></a> is placed flush with the <a
21612163
href="#cross-start"><i>cross-start</i></a> edge of the line.
21622164

2163-
<dt><dfn id=align-items-end><code class=css>end</code></dfn>
2165+
<dt><dfn id=align-items-flex-end><code
2166+
class=css>flex-end</code></dfn>
21642167

21652168
<dd> The <a href="#cross-end"><i>cross-end</i></a> margin edge of the <a
21662169
href="#flex-item"><i>flex item</i></a> is placed flush with the <a
@@ -2180,8 +2183,8 @@ <h3 id=align-items-property><span class=secno>8.3. </span> Cross-axis
21802183
<dd>
21812184
<p> If the <a href="#flex-item"><i>flex item's</i></a> inline axis is the
21822185
same as the <a href="#cross-axis"><i>cross axis</i></a>, this value is
2183-
identical to ‘<a href="#align-content-start"><code
2184-
class=css>start</code></a>’.
2186+
identical to ‘<a href="#align-content-flex-start"><code
2187+
class=css>flex-start</code></a>’.
21852188

21862189
<p> Otherwise, it participates in baseline alignment: all participating
21872190
<a href="#flex-item"><i>flex items</i></a> on the line are aligned such
@@ -2263,7 +2266,8 @@ <h3 id=align-content-property><span class=secno>8.4. </span> The ‘<a
22632266
<tr>
22642267
<th><a href="#values">Value</a>:
22652268

2266-
<td>start | end | center | space-between | space-around | stretch
2269+
<td>flex-start | flex-end | center | space-between | space-around |
2270+
stretch
22672271

22682272
<tr>
22692273
<th>Initial:
@@ -2310,15 +2314,17 @@ <h3 id=align-content-property><span class=secno>8.4. </span> The ‘<a
23102314
within the <i>main-axis</i>:
23112315

23122316
<dl>
2313-
<dt><dfn id=align-content-start><code class=css>start</code></dfn>
2317+
<dt><dfn id=align-content-flex-start><code
2318+
class=css>flex-start</code></dfn>
23142319

23152320
<dd> Lines are packed toward the start of the flex container. The <a
23162321
href="#cross-start"><i>cross-start</i></a> edge of the first line in the
23172322
flex container is placed flush with the <a
23182323
href="#cross-start"><i>cross-start</i></a> edge of the flex container,
23192324
and each subsequent line is placed flush with the preceding line.
23202325

2321-
<dt><dfn id=align-content-end><code class=css>end</code></dfn>
2326+
<dt><dfn id=align-content-flex-end><code
2327+
class=css>flex-end</code></dfn>
23222328

23232329
<dd> Lines are packed toward the end of the flex container. The <a
23242330
href="#cross-end"><i>cross-end</i></a> edge of the last line is placed
@@ -2345,9 +2351,10 @@ <h3 id=align-content-property><span class=secno>8.4. </span> The ‘<a
23452351
<dd> Lines are evenly distributed in the flex container. If the leftover
23462352
free-space is negative or there is only a single line in the flex
23472353
container, this value is identical to ‘<a
2348-
href="#align-content-start"><code class=css>start</code></a>’.
2349-
Otherwise, the <a href="#cross-start"><i>cross-start</i></a> edge of the
2350-
first line in the flex container is placed flush with the <a
2354+
href="#align-content-flex-start"><code
2355+
class=css>flex-start</code></a>’. Otherwise, the <a
2356+
href="#cross-start"><i>cross-start</i></a> edge of the first line in the
2357+
flex container is placed flush with the <a
23512358
href="#cross-start"><i>cross-start</i></a> content edge of the flex
23522359
container, the <a href="#cross-end"><i>cross-end</i></a> edge of the last
23532360
line in the flex container is placed flush with the <a
@@ -2372,9 +2379,9 @@ <h3 id=align-content-property><span class=secno>8.4. </span> The ‘<a
23722379

23732380
<dd> Lines stretch to take up the remaining space. If the leftover
23742381
free-space is negative, this value is identical to ‘<a
2375-
href="#align-content-start"><code class=css>start</code></a>’.
2376-
Otherwise, the free-space is split equally between all of the lines,
2377-
increasing their cross size.
2382+
href="#align-content-flex-start"><code
2383+
class=css>flex-start</code></a>’. Otherwise, the free-space is split
2384+
equally between all of the lines, increasing their cross size.
23782385
</dl>
23792386

23802387
<p class=note> Note: Only flex containers with multiple lines ever have
@@ -2961,11 +2968,10 @@ <h3 id=pagination-algo><span class=secno>10.1. </span> Sample Flex
29612968
<ol>
29622969
<li> Run the entire flex layout algorithm (without regards to
29632970
pagination), except treat any ‘<a href="#align-self"><code
2964-
class=property>align-self</code></a>’ other than ‘<a
2965-
href="#align-content-start"><code class=css>start</code></a>’ or
2966-
<a href="#align-items-baseline"><code
2967-
class=css>baseline</code></a>’ as ‘<a
2968-
href="#align-content-start"><code class=css>start</code></a>’.
2971+
class=property>align-self</code></a>’ other than ‘<code
2972+
class=css>start</code>’ or ‘<a href="#align-items-baseline"><code
2973+
class=css>baseline</code></a>’ as ‘<code
2974+
class=css>start</code>’.
29692975

29702976
<li> If an unbreakable item doesn't fit within the space left on the
29712977
page, and the flex container is not at the top of the page, move the
@@ -2987,9 +2993,8 @@ <h3 id=pagination-algo><span class=secno>10.1. </span> Sample Flex
29872993
its finish. For all fragments besides the first, treat ‘<a
29882994
href="#align-self"><code class=property>align-self</code></a>’ and
29892995
<a href="#align-content"><code
2990-
class=property>align-content</code></a>’ as being ‘<a
2991-
href="#align-content-start"><code class=css>start</code></a>’ for
2992-
all item fragments and lines.
2996+
class=property>align-content</code></a>’ as being ‘<code
2997+
class=css>start</code>’ for all item fragments and lines.
29932998

29942999
<li> If any item, when aligned according to its original ‘<a
29953000
href="#align-self"><code class=property>align-self</code></a>’ value
@@ -3312,7 +3317,8 @@ <h2 class=no-num id=property>Property index</h2>
33123317
<tr>
33133318
<th><a class=property href="#align-content">align-content</a>
33143319

3315-
<td>start | end | center | space-between | space-around | stretch
3320+
<td>flex-start | flex-end | center | space-between | space-around |
3321+
stretch
33163322

33173323
<td>stretch
33183324

@@ -3327,7 +3333,7 @@ <h2 class=no-num id=property>Property index</h2>
33273333
<tr>
33283334
<th><a class=property href="#align-items">align-items</a>
33293335

3330-
<td>start | end | center | baseline | stretch
3336+
<td>flex-start | flex-end | center | baseline | stretch
33313337

33323338
<td>stretch
33333339

@@ -3342,7 +3348,7 @@ <h2 class=no-num id=property>Property index</h2>
33423348
<tr>
33433349
<th><a class=property href="#align-self">align-self</a>
33443350

3345-
<td>auto | start | end | center | baseline | stretch
3351+
<td>auto | flex-start | flex-end | center | baseline | stretch
33463352

33473353
<td>auto
33483354

@@ -3470,7 +3476,7 @@ <h2 class=no-num id=property>Property index</h2>
34703476
<tr>
34713477
<th><a class=property href="#justify-content">justify-content</a>
34723478

3473-
<td>start | end | center | space-between | space-around
3479+
<td>flex-start | flex-end | center | space-between | space-around
34743480

34753481
<td>start
34763482

@@ -3574,11 +3580,6 @@ <h2 class=no-num id=index>Index</h2>
35743580
<li>definite size, <a href="#definite-size"
35753581
title="definite size"><strong>9.</strong></a>
35763582

3577-
<li><a href="#align-content-end"><code class=css>end</code></a>’, <a
3578-
href="#align-content-end" title="''end''"><strong>8.4.</strong></a>, <a
3579-
href="#align-items-end" title="''end''"><strong>8.3.</strong></a>, <a
3580-
href="#justify-content-end" title="''end''"><strong>8.2.</strong></a>
3581-
35823583
<li>flex, <a href="#display-flex" title=flex><strong>3.</strong></a>, <a
35833584
href="#flex" title=flex><strong>7.1.</strong></a>
35843585

@@ -3594,6 +3595,14 @@ <h2 class=no-num id=index>Index</h2>
35943595
<li>flex-direction, <a href="#flex-direction"
35953596
title=flex-direction><strong>5.1.</strong></a>
35963597

3598+
<li><a href="#align-content-flex-end"><code
3599+
class=css>flex-end</code></a>’, <a href="#align-content-flex-end"
3600+
title="''flex-end''"><strong>8.4.</strong></a>, <a
3601+
href="#align-items-flex-end"
3602+
title="''flex-end''"><strong>8.3.</strong></a>, <a
3603+
href="#justify-content-flex-end"
3604+
title="''flex-end''"><strong>8.2.</strong></a>
3605+
35973606
<li>flex-flow, <a href="#flex-flow"
35983607
title=flex-flow><strong>5.3.</strong></a>
35993608

@@ -3618,6 +3627,14 @@ <h2 class=no-num id=index>Index</h2>
36183627
<li>flex-shrink, <a href="#flex-shrink"
36193628
title=flex-shrink><strong>7.3.2.</strong></a>
36203629

3630+
<li><a href="#align-content-flex-start"><code
3631+
class=css>flex-start</code></a>’, <a href="#align-content-flex-start"
3632+
title="''flex-start''"><strong>8.4.</strong></a>, <a
3633+
href="#align-items-flex-start"
3634+
title="''flex-start''"><strong>8.3.</strong></a>, <a
3635+
href="#justify-content-flex-start"
3636+
title="''flex-start''"><strong>8.2.</strong></a>
3637+
36213638
<li>flex-wrap, <a href="#flex-wrap"
36223639
title=flex-wrap><strong>5.2.</strong></a>
36233640

@@ -3694,13 +3711,6 @@ <h2 class=no-num id=index>Index</h2>
36943711
href="#justify-content-space-between"
36953712
title="''space-between''"><strong>8.2.</strong></a>
36963713

3697-
<li><a href="#align-content-start"><code class=css>start</code></a>’,
3698-
<a href="#align-content-start"
3699-
title="''start''"><strong>8.4.</strong></a>, <a href="#align-items-start"
3700-
title="''start''"><strong>8.3.</strong></a>, <a
3701-
href="#justify-content-start" title="''start''"><strong>8.2.</strong></a>
3702-
3703-
37043714
<li><a href="#align-content-stretch"><code
37053715
class=css>stretch</code></a>’, <a href="#align-content-stretch"
37063716
title="''stretch''"><strong>8.4.</strong></a>, <a

0 commit comments

Comments
 (0)