- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 12 Dec 2011 23:23:06 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-values In directory hutz:/tmp/cvs-serv1348 Modified Files: Overview.html Overview.src.html Log Message: Add 'or else min value' clauses to the other parts of attr(). Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.html,v retrieving revision 1.151 retrieving revision 1.152 diff -u -d -r1.151 -r1.152 --- Overview.html 12 Dec 2011 23:20:32 -0000 1.151 +++ Overview.html 12 Dec 2011 23:23:04 -0000 1.152 @@ -1606,10 +1606,12 @@ class=css><time></code>’ or ‘<code class=css><frequency></code>’ (respectively), and the unit identifier (if any) will appear in the attribute value. The default is - ‘<code class=css>0</code>’ in the relevant units. The default - should also be used if the property in question only accepts values - within a certain range (e.g. positive lengths or angles from 0 to 90deg) - and the attribute is out of range (e.g. a negative length or 180deg). + ‘<code class=css>0</code>’ in the relevant units, or else the + property's minimum value if ‘<code class=css>0</code>’ in the + relevant units is not valid for the property. The default should also be + used if the property in question only accepts values within a certain + range (e.g. positive lengths or angles from 0 to 90deg) and the attribute + is out of range (e.g. a negative length or 180deg). <dt>‘<a href="#em-unit"><code class=css>em</code></a>’ @@ -1654,7 +1656,9 @@ <dd>The attribute value will be interpreted as a CSS ‘<code class=css><number></code>’, with the given type suffixed as a unit. The default is ‘<code class=css>0</code>’ in the - relevant units. + relevant units, or else the property's minimum value if ‘<code + class=css>0</code>’ in the relevant units is not valid for the + property. </dl> <div class=example> Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-values/Overview.src.html,v retrieving revision 1.154 retrieving revision 1.155 diff -u -d -r1.154 -r1.155 --- Overview.src.html 12 Dec 2011 23:20:32 -0000 1.154 +++ Overview.src.html 12 Dec 2011 23:23:04 -0000 1.155 @@ -1120,7 +1120,7 @@ <dd>The attribute value will be interpreted as a CSS ''<length>'', ''<angle>'', ''<time>'' or ''<frequency>'' (respectively), and the unit identifier (if any) will appear in the attribute value. - The default is ''0'' in the relevant units. The default should also be + The default is ''0'' in the relevant units, or else the property's minimum value if ''0'' in the relevant units is not valid for the property. The default should also be used if the property in question only accepts values within a certain range (e.g. positive lengths or angles from 0 to 90deg) and the attribute is out of range (e.g. a negative length or 180deg). @@ -1147,7 +1147,7 @@ <dt>''%'' <dd>The attribute value will be interpreted as a CSS ''<number>'', with the given type suffixed as a unit. The default is ''0'' in the relevant - units. + units, or else the property's minimum value if ''0'' in the relevant units is not valid for the property. </dl> <div class="example">
Received on Monday, 12 December 2011 23:23:07 UTC