Skip to content

Commit 61f9785

Browse files
committed
[css-flexbox] Switch omitted flex-basis from 0 to 0% per <http://lists.w3.org/Archives/Public/www-style/2013May/0614.html>... this needs review, though
1 parent 6251274 commit 61f9785

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

css-flexbox/Overview.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ <h3 id=flex-property><span class=secno>7.1. </span> The ‘<a
20142014
size</i></a> of the <a href="#flex-item"><i>flex item</i></a>, before
20152015
free space is distributed according to the flex factors. When omitted
20162016
from the ‘<a href="#flex"><code class=property>flex</code></a>
2017-
shorthand, its specified value is the length zero.
2017+
shorthand, its specified value is <code class=css>0%</code>.
20182018

20192019
<p> If the specified ‘<a href="#flex-basis-propdef"><code
20202020
class=property>flex-basis</code></a>’ is <a
@@ -2106,7 +2106,7 @@ <h3 id=flex-common><span class=secno>7.2. </span> Common Values of ‘<a
21062106
<dt><code class=css>flex: &lt;positive-number></code>
21072107

21082108
<dd> Equivalent to ‘<code class=css>flex: &lt;positive-number> 1
2109-
0px</code>’. Makes the flex item flexible and sets the <a
2109+
0%</code>’. Makes the flex item flexible and sets the <a
21102110
href="#flex-basis"><i>flex basis</i></a> to zero, resulting in an item
21112111
that receives the specified proportion of the free space in the flex
21122112
container. If all items in the flex container use this pattern, their
@@ -3998,6 +3998,12 @@ <h2 class=no-num id=changes>Changes</h2>
39983998
<li> Flex lines have their size floored at 0.
39993999

40004000
<li> Flex items paint like inline blocks rather than blocks.
4001+
4002+
<li> An omitted ‘<a href="#flex-basis-propdef"><code
4003+
class=property>flex-basis</code></a>’ component of the ‘<a
4004+
href="#flex"><code class=property>flex</code></a>’ shorthand now
4005+
resolves to ‘<code class=css>0%</code>’ instead of ‘<code
4006+
class=css>0px</code>’.
40014007
</ul>
40024008

40034009
<p>The following significant clarifications were also made:

css-flexbox/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ <h3 id='flex-property'>
14941494
and specifies the <dfn>flex basis</dfn>:
14951495
the initial <i>main size</i> of the <i>flex item</i>,
14961496
before free space is distributed according to the flex factors.
1497-
When omitted from the 'flex' shorthand, its specified value is the length zero.
1497+
When omitted from the 'flex' shorthand, its specified value is ''0%''.
14981498
<p>
14991499
If the specified 'flex-basis' is <a href="#flex-basis-auto">''auto''</a>,
15001500
the used <i>flex basis</i> is the value of the element's <i>main size property</i>.
@@ -1569,7 +1569,7 @@ <h3 id='flex-common'>
15691569

15701570
<dt>''flex: &lt;positive-number>''
15711571
<dd>
1572-
Equivalent to ''flex: &lt;positive-number> 1 0px''.
1572+
Equivalent to ''flex: &lt;positive-number> 1 0%''.
15731573
Makes the flex item flexible and sets the <i>flex basis</i> to zero,
15741574
resulting in an item that receives the specified proportion of the free space in the flex container.
15751575
If all items in the flex container use this pattern,
@@ -3267,6 +3267,8 @@ <h2 class="no-num" id="changes">Changes</h2>
32673267
Flex lines have their size floored at 0.
32683268
<li>
32693269
Flex items paint like inline blocks rather than blocks.
3270+
<li>
3271+
An omitted 'flex-basis' component of the 'flex' shorthand now resolves to ''0%'' instead of ''0px''.
32703272
</ul>
32713273

32723274
<p>The following significant clarifications were also made:

css-flexbox/issues-cr-2012.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Issue 21.
159159
Summary: Clarify interaction of table fixup and flex itemizing
160160
From: Christian Biesinger
161161
Comment: http://lists.w3.org/Archives/Public/www-style/2013May/0508.html
162+
Response: http://lists.w3.org/Archives/Public/www-style/2013Jul/0462.html
162163
Open
163164
----
164165
Issue 22.

0 commit comments

Comments
 (0)