Skip to content

Commit 1aa9850

Browse files
committed
Specify the rules for interpolating font-weight.
This is roughly as proposed in http://lists.w3.org/Archives/Public/www-style/2012Feb/1083.html and resolved in the 2012 March 7 teleconference (minutes at http://lists.w3.org/Archives/Public/www-style/2012Mar/0195.html ). Except I noticed a mistake as described in http://lists.w3.org/Archives/Public/www-style/2012Mar/0596.html and fixed it by rounding down instead of rounding to nearest.
1 parent 8936fbe commit 1aa9850

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

css3-transitions/Overview.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,11 @@ <h2 id=animation-of-property-types-><span class=secno>6. </span> Animation
11261126
numbers). The interpolation happens in real number space and is converted
11271127
to an integer using <code>floor()</code>.
11281128

1129+
<li> <strong>font weight</strong>: interpolated via discrete steps
1130+
(multiples of 100). The interpolation happens in real number space and is
1131+
converted to an integer by rounding down to the nearest smaller or equal
1132+
multiple of 100.
1133+
11291134
<li> <strong>number</strong>: interpolated as real (floating point)
11301135
numbers.
11311136

@@ -1307,7 +1312,7 @@ <h3 id=properties-from-css-><span class=secno>7.1. </span> Properties from
13071312
<tr>
13081313
<td>font-weight
13091314

1310-
<td>number <span class=issue>It's not that simple.</span>
1315+
<td>font weight
13111316

13121317
<tr>
13131318
<td>height

css3-transitions/Overview.src.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,12 @@ <h2 id="animation-of-property-types-">
11051105
numbers). The interpolation happens in real number space and is
11061106
converted to an integer using <code>floor()</code>.
11071107
</li>
1108+
<li>
1109+
<strong>font weight</strong>: interpolated via discrete steps
1110+
(multiples of 100). The interpolation happens in real number
1111+
space and is converted to an integer by rounding down to the
1112+
nearest smaller or equal multiple of 100.
1113+
</li>
11081114
<li>
11091115
<strong>number</strong>: interpolated as real (floating point)
11101116
numbers.
@@ -1254,8 +1260,7 @@ <h3>
12541260
<td>font-size</td><td>length, percentage</td>
12551261
</tr>
12561262
<tr>
1257-
<td>font-weight</td><td>number <span class="issue">It's not
1258-
that simple.</span></td>
1263+
<td>font-weight</td><td>font weight</td>
12591264
</tr>
12601265
<tr>
12611266
<td>height</td><td>length, percentage</td>

0 commit comments

Comments
 (0)