Skip to content

Commit 992f1cf

Browse files
committed
Reorg the flex() section to remove nesting, since there's only one section there now.
1 parent ec0f736 commit 992f1cf

2 files changed

Lines changed: 21 additions & 31 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,8 @@ <h2 class="no-num no-toc" id=table>Table of contents</h2>
206206
the &lsquo;<code class=property>flex-order</code>&rsquo; property</a>
207207
</ul>
208208

209-
<li><a href="#flexibility"><span class=secno>4. </span> Flexibility</a>
210-
<ul class=toc>
211-
<li><a href="#flex-notation"><span class=secno>4.1. </span> The
212-
&lsquo;<code class=css>flex()</code>&rsquo; notation</a>
213-
</ul>
209+
<li><a href="#flexibility"><span class=secno>4. </span> Flexibility: the
210+
&lsquo;<code class=css>flex()</code>&rsquo; notation</a>
214211

215212
<li><a href="#alignment"><span class=secno>5. </span> Alignment</a>
216213
<ul class=toc>
@@ -1047,19 +1044,18 @@ <h3 id=flex-order><span class=secno>3.2. </span> Display Order: the
10471044
intelligent wrapping left as an exercise for the reader.)</small></p>
10481045
</div>
10491046

1050-
<h2 id=flexibility><span class=secno>4. </span> Flexibility</h2>
1047+
<h2 id=flexibility><span class=secno>4. </span> Flexibility: the
1048+
&lsquo;<code class=css>flex()</code>&rsquo; notation</h2>
10511049

10521050
<p>The defining aspect of flexbox layout is the ability to make the <a
10531051
href="#flexbox-item"><i>flexbox items</i></a> "flex", altering their width
1054-
or height to fill the available space. This is done by declaring a <dfn
1055-
id=flexible-length>flexible length</dfn> with the &lsquo;<code
1056-
class=css>flex()</code>&rsquo; notation, defined below.
1057-
1058-
<h3 id=flex-notation><span class=secno>4.1. </span> The &lsquo;<code
1059-
class=css>flex()</code>&rsquo; notation</h3>
1052+
or height to fill the available space. This is done by setting an
1053+
element's &lsquo;<code class=property>width</code>&rsquo; or &lsquo;<code
1054+
class=property>height</code>&rsquo; to a <a
1055+
href="#flexible-length"><i>flexible length</i></a> value.
10601056

10611057
<p>The &lsquo;<code class=css>flex()</code>&rsquo; notation is used to
1062-
specify the parameters of a <dfn id=flexible-length0
1058+
specify the parameters of a <dfn id=flexible-length
10631059
title="flexible length|flexible lengths|flexible length's">flexible
10641060
length</dfn>: the <dfn id=positive-flexibility
10651061
title="positive flexibility">positive</dfn> and <dfn
@@ -2531,8 +2527,8 @@ <h2 class=no-num id=index>Index</h2>
25312527
<li>fix min size violations, <a href="#fix-size-constraint-violations"
25322528
title="fix min size violations"><strong>7.</strong></a>
25332529

2534-
<li>&lt;flex>, <a href="#ltflex"
2535-
title="&lt;flex>"><strong>4.1.</strong></a>
2530+
<li>&lt;flex>, <a href="#ltflex" title="&lt;flex>"><strong>4.</strong></a>
2531+
25362532

25372533
<li>flex-align, <a href="#flex-align0"
25382534
title=flex-align><strong>5.2.</strong></a>
@@ -2555,15 +2551,13 @@ <h2 class=no-num id=index>Index</h2>
25552551
title=flex-flow><strong>3.1.</strong></a>
25562552

25572553
<li>flexible length, <a href="#flexible-length"
2558-
title="flexible length"><strong>4.</strong></a>, <a
2559-
href="#flexible-length0"
2560-
title="flexible length"><strong>4.1.</strong></a>
2554+
title="flexible length"><strong>4.</strong></a>
25612555

2562-
<li>flexible lengths, <a href="#flexible-length0"
2563-
title="flexible lengths"><strong>4.1.</strong></a>
2556+
<li>flexible lengths, <a href="#flexible-length"
2557+
title="flexible lengths"><strong>4.</strong></a>
25642558

2565-
<li>flexible length's, <a href="#flexible-length0"
2566-
title="flexible length's"><strong>4.1.</strong></a>
2559+
<li>flexible length's, <a href="#flexible-length"
2560+
title="flexible length's"><strong>4.</strong></a>
25672561

25682562
<li>flex-item-align, <a href="#flex-item-align"
25692563
title=flex-item-align><strong>5.2.</strong></a>
@@ -2608,16 +2602,16 @@ <h2 class=no-num id=index>Index</h2>
26082602
title=multi-line><strong>6.</strong></a>
26092603

26102604
<li>negative flexibility, <a href="#negative-flexibility"
2611-
title="negative flexibility"><strong>4.1.</strong></a>
2605+
title="negative flexibility"><strong>4.</strong></a>
26122606

26132607
<li>no-wrap, <a href="#flex-flow-no-wrap"
26142608
title=no-wrap><strong>3.1.</strong></a>
26152609

26162610
<li>positive flexibility, <a href="#positive-flexibility"
2617-
title="positive flexibility"><strong>4.1.</strong></a>
2611+
title="positive flexibility"><strong>4.</strong></a>
26182612

26192613
<li>preferred size, <a href="#preferred-size"
2620-
title="preferred size"><strong>4.1.</strong></a>
2614+
title="preferred size"><strong>4.</strong></a>
26212615

26222616
<li>renderer, <a href="#renderer" title=renderer><strong>9.2.</strong></a>
26232617

css3-flexbox/Overview.src.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,14 +496,10 @@ <h3 id='flex-order'>
496496

497497

498498
<h2 id='flexibility'>
499-
Flexibility</h2>
499+
Flexibility: the ''flex()'' notation</h2>
500500

501-
<p>The defining aspect of flexbox layout is the ability to make the <i>flexbox items</i> "flex", altering their width or height to fill the available space. This is done by declaring a <dfn>flexible length</dfn> with the ''flex()'' notation, defined below.</p>
501+
<p>The defining aspect of flexbox layout is the ability to make the <i>flexbox items</i> "flex", altering their width or height to fill the available space. This is done by setting an element's 'width' or 'height' to a <i>flexible length</i> value.</p>
502502

503-
504-
<h3 id='flex-notation'>
505-
The ''flex()'' notation</h3>
506-
507503
<p>The ''flex()'' notation is used to specify the parameters of a <dfn title="flexible length|flexible lengths|flexible length's">flexible length</dfn>: the <dfn id="positive-flexibility" title="positive flexibility">positive</dfn> and <dfn>negative flexibility</dfn>, and the <dfn>preferred size</dfn>. The syntax of the ''flex()'' notation is:</p>
508504

509505
<pre class=prod><dfn>&lt;flex></dfn> = flex( [ &lt;pos-flex> &lt;neg-flex>? ]? || &lt;preferred-size>? )</pre>

0 commit comments

Comments
 (0)