Skip to content

Commit 00c6286

Browse files
committed
Switch font weight animation back to round-to-nearest, and note issues with rounding direction for both font weight and integer, per WG teleconference right now.
1 parent ba0fd23 commit 00c6286

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

css3-transitions/Overview.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525

2626
<h1>CSS Transitions</h1>
2727

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 March 2012</h2>
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 March 2012</h2>
2929

3030
<dl>
3131
<dt>This version:
3232

33-
<dd> <a href="http://www.w3.org/TR/2012/ED-css3-transitions-20120327/">
33+
<dd> <a href="http://www.w3.org/TR/2012/ED-css3-transitions-20120328/">
3434
http://dev.w3.org/csswg/css3-transitions/</a>
35-
<!--http://www.w3.org/TR/2012/WD-css3-transitions-20120327-->
35+
<!--http://www.w3.org/TR/2012/WD-css3-transitions-20120328-->
3636

3737
<dt>Latest version:
3838

@@ -1155,12 +1155,15 @@ <h2 id=animation-of-property-types-><span class=secno>6. </span> Animation
11551155

11561156
<li> <strong>integer</strong>: interpolated via discrete steps (whole
11571157
numbers). The interpolation happens in real number space and is converted
1158-
to an integer using <code>floor()</code>.
1158+
to an integer using <code>floor()</code>. <span class=issue> This floor
1159+
behavior is inconsistent with SMIL Animation / SVG Animation. </span>
11591160

11601161
<li> <strong>font weight</strong>: interpolated via discrete steps
11611162
(multiples of 100). The interpolation happens in real number space and is
1162-
converted to an integer by rounding down to the nearest smaller or equal
1163-
multiple of 100.
1163+
converted to an integer by rounding to the nearest multiple of 100. <span
1164+
class=issue> This round-to-nearest behavior is inconsistent with the
1165+
floor behavior used for integer types, but probably should be consistent
1166+
(one way or the other). </span>
11641167

11651168
<li> <strong>number</strong>: interpolated as real (floating point)
11661169
numbers.

css3-transitions/Overview.src.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,12 +1133,21 @@ <h2 id="animation-of-property-types-">
11331133
<strong>integer</strong>: interpolated via discrete steps (whole
11341134
numbers). The interpolation happens in real number space and is
11351135
converted to an integer using <code>floor()</code>.
1136+
<span class="issue">
1137+
This floor behavior is inconsistent with SMIL Animation /
1138+
SVG Animation.
1139+
</span>
11361140
</li>
11371141
<li>
11381142
<strong>font weight</strong>: interpolated via discrete steps
11391143
(multiples of 100). The interpolation happens in real number
1140-
space and is converted to an integer by rounding down to the
1141-
nearest smaller or equal multiple of 100.
1144+
space and is converted to an integer by rounding to the
1145+
nearest multiple of 100.
1146+
<span class="issue">
1147+
This round-to-nearest behavior is inconsistent with the
1148+
floor behavior used for integer types, but probably should
1149+
be consistent (one way or the other).
1150+
</span>
11421151
</li>
11431152
<li>
11441153
<strong>number</strong>: interpolated as real (floating point)

0 commit comments

Comments
 (0)