- 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
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>’ or ‘<code class=css>2</code>’?</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 ‘<code class=css>/</code>’ or ‘<code
class=css>mod</code>’, check that the right side is ‘<code
- class=css><number></code>’; resolve to the type of the left side
-
+ class=css><number></code>’; 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 ''<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 UTC