Skip to content

Commit bfd2d5f

Browse files
committed
Clarify 'flex' parsing with unitless zeroes. <http://lists.w3.org/Archives/Public/www-style/2012Sep/0216.html>
1 parent d92b848 commit bfd2d5f

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,12 +2035,6 @@ <h3 id=flex-property><span class=secno>7.1. </span> The ‘<a
20352035
from the ‘<a href="#flex"><code class=property>flex</code></a>
20362036
shorthand, its specified value is the length zero.
20372037

2038-
<p class=note> If not omitted, a zero
2039-
<var>&lt;&apos;flex-basis&apos;></var> component must be either
2040-
specified with a unit or preceded by both flex ratios. Otherwise it will
2041-
either be interpreted as one of the flex ratios, or will make the
2042-
declaration invalid.
2043-
20442038
<p> If the specified ‘<a href="#flex-basis-propdef"><code
20452039
class=property>flex-basis</code></a>’ is <a
20462040
href="#flex-basis-auto"><code class=css>auto</code></a>, the used
@@ -2076,6 +2070,11 @@ <h3 id=flex-property><span class=secno>7.1. </span> The ‘<a
20762070
shorthand can better accommodate the most <a href="#flex-common">common
20772071
cases</a>.
20782072

2073+
<p> A unitless zero that is not already preceded by two flex factors must
2074+
be interpreted as a flex factor. To avoid misinterpretation or invalid
2075+
declarations, authors must specify a zero <var>&lt;flex-basis></var>
2076+
component with a unit or precede it by both flex ratios.
2077+
20792078
<h3 id=flex-common><span class=secno>7.2. </span> Common Values of ‘<a
20802079
href="#flex"><code class=property>flex</code></a></h3>
20812080

css3-flexbox/Overview.src.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,11 +1518,6 @@ <h3 id='flex-property'>
15181518
the initial <i>main size</i> of the <i>flex item</i>,
15191519
before free space is distributed according to the flex ratios.
15201520
When omitted from the 'flex' shorthand, its specified value is the length zero.
1521-
<p class="note">
1522-
If not omitted, a zero <var>&lt;&apos;flex-basis&apos;></var> component
1523-
must be either specified with a unit or preceded by both flex ratios.
1524-
Otherwise it will either be interpreted as one of the flex ratios,
1525-
or will make the declaration invalid.
15261521
<p>
15271522
If the specified 'flex-basis' is <a href="#flex-basis-auto">''auto''</a>,
15281523
the used <i>flex basis</i> is the value of the element's <i>main size property</i>.
@@ -1550,6 +1545,13 @@ <h3 id='flex-property'>
15501545
are different from their defaults when omitted in the 'flex' shorthand.
15511546
This so that the 'flex' shorthand can better accommodate the most <a href="#flex-common">common cases</a>.
15521547

1548+
<p>
1549+
A unitless zero that is not already preceded by two flex factors
1550+
must be interpreted as a flex factor.
1551+
To avoid misinterpretation or invalid declarations,
1552+
authors must specify a zero <var>&lt;flex-basis></var> component
1553+
with a unit or precede it by both flex ratios.
1554+
15531555
<h3 id='flex-common'>
15541556
Common Values of 'flex'</h3>
15551557

css3-flexbox/issues-lc-2012.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,11 @@ <h1>CSS Flexible Box Layout Level 3 Disposition of Comments for 2012-06-12 LCWD<
253253
Response: <a href="http://lists.w3.org/Archives/Public/www-style/2012Sep/0116.html">http://lists.w3.org/Archives/Public/www-style/2012Sep/0116.html</a>
254254
Closed: Accepted
255255
</pre>
256-
<pre class="open" id="issue-26">
256+
<pre class="a" id="issue-26">
257257
Issue 26.
258258
Summary: Clarify parsing of unitless zero in 'flex' shorthand
259259
From: 呂康豪 (Kang-Hao Lu)
260260
Comment: <a href="http://lists.w3.org/Archives/Public/www-style/2012Sep/0216.html">http://lists.w3.org/Archives/Public/www-style/2012Sep/0216.html</a>
261261
Response: <a href="http://lists.w3.org/Archives/Public/www-style/2012Sep/0300.html">http://lists.w3.org/Archives/Public/www-style/2012Sep/0300.html</a>
262-
Open
262+
Closed: Accepted
263263
</pre>

css3-flexbox/issues-lc-2012.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,5 @@ Summary: Clarify parsing of unitless zero in 'flex' shorthand
197197
From: 呂康豪 (Kang-Hao Lu)
198198
Comment: http://lists.w3.org/Archives/Public/www-style/2012Sep/0216.html
199199
Response: http://lists.w3.org/Archives/Public/www-style/2012Sep/0300.html
200-
Open
200+
Closed: Accepted
201201
----

0 commit comments

Comments
 (0)