- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 27 Jan 2012 01:10:32 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-flexbox In directory hutz:/tmp/cvs-serv1291 Modified Files: Overview.html Overview.src.html Log Message: Add some conformance criteria to the 'no unitless 0 in flex()' requirement. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-flexbox/Overview.html,v retrieving revision 1.116 retrieving revision 1.117 diff -u -d -r1.116 -r1.117 --- Overview.html 27 Jan 2012 00:31:46 -0000 1.116 +++ Overview.html 27 Jan 2012 01:10:30 -0000 1.117 @@ -1066,7 +1066,11 @@ ‘<code class=css>flex()</code>’ function) that would be valid in the ‘<code class=property>width</code>’ or ‘<code class=property>height</code>’ property in which the function is - used, except that zero lengths must not omit their unit. + used. If the <code><preferred-size></code> is ‘<code + class=css>0</code>’, it <strong>must</strong> be specified with a + unit (like ‘<code class=css>0px</code>’) to avoid ambiguity; + unitless zero will either be interpreted as as one of the flexibilities, + or is a syntax error. <p>The <code><pos-flex></code> component sets the length's <a href="#positive-flexibility"><i>positive flexibility</i></a>; if omitted, Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-flexbox/Overview.src.html,v retrieving revision 1.115 retrieving revision 1.116 diff -u -d -r1.115 -r1.116 --- Overview.src.html 27 Jan 2012 00:31:46 -0000 1.115 +++ Overview.src.html 27 Jan 2012 01:10:30 -0000 1.116 @@ -504,7 +504,7 @@ <pre class=prod>flex( [ <pos-flex> <neg-flex>? ]? || <preferred-size>? )</pre> - <p><code><pos-flex></code> and <code><neg-flex></code> are non-negative <code><numbers>s</code>, while <code><preferred-size></code> is any value (other than another ''flex()'' function) that would be valid in the 'width' or 'height' property in which the function is used, except that zero lengths must not omit their unit.</p> + <p><code><pos-flex></code> and <code><neg-flex></code> are non-negative <code><numbers>s</code>, while <code><preferred-size></code> is any value (other than another ''flex()'' function) that would be valid in the 'width' or 'height' property in which the function is used. If the <code><preferred-size></code> is ''0'', it <strong>must</strong> be specified with a unit (like ''0px'') to avoid ambiguity; unitless zero will either be interpreted as as one of the flexibilities, or is a syntax error.</p> <p>The <code><pos-flex></code> component sets the length's <i>positive flexibility</i>; if omitted, the <i>positive flexibility</i> defaults to ''1''. The <code><neg-flex></code> component sets the length's <i>negative flexibility</i>; if omitted, it defaults to ''0''. The <code><preferred-size></code> component sets the length's <i>preferred size</i>; if omitted, it defaults to ''0px''.</p>
Received on Friday, 27 January 2012 01:10:36 UTC