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

csswg/css3-values Overview.html,1.121,1.122 Overview.src.html,1.124,1.125

From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 11 Oct 2011 01:14:25 +0000
To: public-css-commits@w3.org
Message-Id: <E1RDQvJ-0003p2-Se@lionel-hutz.w3.org>
Update of /sources/public/csswg/css3-values
In directory hutz:/tmp/cvs-serv14678

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Add note about mod with units on both sides, for future reference.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.html,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- Overview.html	11 Oct 2011 01:02:00 -0000	1.121
+++ Overview.html	11 Oct 2011 01:14:23 -0000	1.122
@@ -1331,7 +1331,8 @@
    class=css>-3</code>&rsquo; or &lsquo;<code class=css>2</code>&rsquo;?</p>
   <!-- http://lists.w3.org/Archives/Public/www-style/2010May/0001.html
 	This has notes on how we should handle things when calc() is extended to 
-	handle unit mult/div. -->
+	handle unit mult/div. Related to this is <unit>mod<unit>, which can return
+	0 and thus introduce computed-time division-by-zero. -->
 
   <div class=example>
    <pre>
@@ -1433,8 +1434,8 @@
 
    <li>At &lsquo;<code class=css>/</code>&rsquo; or &lsquo;<code
     class=css>mod</code>&rsquo;, check that the right side is &lsquo;<code
-    class=css>&lt;number></code>&rsquo;; resolve to the type of the left side
-    
+    class=css>&lt;number></code>&rsquo;; resolve to the type of the left
+    side.
   </ul>
 
   <p>If an operator does not pass the above checks, the expression is

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-values/Overview.src.html,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- Overview.src.html	11 Oct 2011 01:02:00 -0000	1.124
+++ Overview.src.html	11 Oct 2011 01:14:23 -0000	1.125
@@ -890,7 +890,8 @@
 
 	<!-- http://lists.w3.org/Archives/Public/www-style/2010May/0001.html
 	This has notes on how we should handle things when calc() is extended to 
-	handle unit mult/div. -->
+	handle unit mult/div. Related to this is <unit>mod<unit>, which can return
+	0 and thus introduce computed-time division-by-zero. -->
 
 	<div class="example">
 		<pre>
@@ -979,7 +980,7 @@
 		resolve to the type of the other side</li>
 
 		<li>At ''/'' or ''mod'', check that the right side is ''&lt;number>'';
-		   resolve to the type of the left side
+		resolve to the type of the left side.</li>
 	</ul>
 
 	<p>If an operator does not pass the above checks, the expression is invalid.
Received on Tuesday, 11 October 2011 01:14:27 GMT

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