Skip to content

Commit fa9455e

Browse files
committed
Add the special case that '0 <length>' is equivalent to '0 0 <length>' for 'flex'.
--HG-- extra : rebase_source : a798730a7101391477a830717168d3e52afc3f51
1 parent 559f09d commit fa9455e

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

css3-flexbox/Overview.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,14 @@ <h2 id=flexibility><span class=secno>7. </span> Flexibility: the ‘<a
13891389
either be interpreted as as one of the flex ratios, or will make the
13901390
declaration invalid.
13911391

1392+
<p> If the <a href="#positive-flexibility"><i>positive flex ratio</i></a>
1393+
is set to ‘<code class=css>0</code>’ and the <a
1394+
href="#negative-flex-ratio"><i>negative flex ratio</i></a> is omitted, the
1395+
latter defaults to ‘<code class=css>0</code>’ as well. <span
1396+
class=note>Note that this is different from the initial value of ‘<a
1397+
href="#flex-shrink"><code class=property>flex-shrink</code></a>’.</span>
1398+
1399+
13921400
<p> The keyword ‘<code class=property>none</code>’ computes to ‘<code
13931401
class=css>0 0 auto</code>’.
13941402

@@ -1942,7 +1950,9 @@ <h3 id=flex-align><span class=secno>8.3. </span> Cross-axis Alignment: the
19421950
class=css>auto</code></dfn> for ‘<a href="#flex-item-align"><code
19431951
class=property>flex-item-align</code></a>’ computes to the value of
19441952
<a href="#flex-align0"><code class=property>flex-align</code></a>’ on
1945-
the element's parent. The alignments are defined as:
1953+
the element's parent, or ‘<a href="#flex-line-pack-stretch"><code
1954+
class=css>stretch</code></a>’ if the element has no parent. The
1955+
alignments are defined as:
19461956

19471957
<dl>
19481958
<dt><dfn id=flex-align-start><code class=css>start</code></dfn>

css3-flexbox/Overview.src.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,12 @@ <h2 id='flexibility'>
902902
unitless zero will either be interpreted as as one of the flex ratios,
903903
or will make the declaration invalid.
904904

905+
<p>
906+
If the <i>positive flex ratio</i> is set to ''0''
907+
and the <i>negative flex ratio</i> is omitted,
908+
the latter defaults to ''0'' as well.
909+
<span class='note'>Note that this is different from the initial value of 'flex-shrink'.</span>
910+
905911
<p>
906912
The keyword 'none' computes to ''0 0 auto''.
907913

0 commit comments

Comments
 (0)