W3C home > Mailing lists > Public > public-css-commits@w3.org > October 2011

csswg/css3-values Overview.html,1.123,1.124 Overview.src.html,1.126,1.127

From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 11 Oct 2011 01:25:33 +0000
To: public-css-commits@w3.org
Message-Id: <E1RDR65-00047J-G0@lionel-hutz.w3.org>
Update of /sources/public/csswg/css3-values
In directory hutz:/tmp/cvs-serv15807

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Make it clear that dividing by an expression that evaluates to 0 is invalid in calc().

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.html,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- Overview.html	11 Oct 2011 01:23:21 -0000	1.123
+++ Overview.html	11 Oct 2011 01:25:31 -0000	1.124
@@ -1439,7 +1439,10 @@
   </ul>
 
   <p>If an operator does not pass the above checks, the expression is
-   invalid. Also, division by zero is invalid.
+   invalid. Also, division by zero is invalid. This includes both dividing by
+   the literal number zero, as well as any numeric expression that evaluates
+   to zero (as purely-numeric expressions can be evaluated without any
+   additional information at parse time).
 
   <p>The value resulting from an expression must be clamped to the range
    allowed in the target context.

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.src.html,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- Overview.src.html	11 Oct 2011 01:23:21 -0000	1.126
+++ Overview.src.html	11 Oct 2011 01:25:31 -0000	1.127
@@ -984,7 +984,10 @@
 	</ul>
 
 	<p>If an operator does not pass the above checks, the expression is invalid.
-	Also, division by zero is invalid.</p>
+	Also, division by zero is invalid.  This includes both dividing by the 
+	literal number zero, as well as any numeric expression that evaluates to zero
+	(as purely-numeric expressions can be evaluated without any additional 
+	information at parse time).</p>
 
 	<p>The value resulting from an expression must be clamped to the
 	range allowed in the target context.  
Received on Tuesday, 11 October 2011 01:25:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 October 2011 01:25:35 GMT