Skip to content

Commit f432462

Browse files
committed
[css-timing] Mark steps and step-position as definitions
1 parent f78718f commit f432462

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

css-timing/Overview.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Some example step timing functions are illustrated below.
221221
</figure>
222222

223223
A [=step timing function=] is defined by a non-zero positive number of
224-
<var>steps</var>, and a <var>step position</var> property that may be either
224+
<dfn>steps</dfn>, and a <dfn>step position</dfn> property that may be either
225225
<a value for="steps()">start</a> or <a value for="steps()">end</a>.
226226

227227
At the exact point where a step occurs the result of the function is
@@ -234,31 +234,31 @@ The [=output progress value=] is calculated from the [=input progress value=]
234234
and [=before flag=] as follows:
235235

236236
1. Calculate the <var>current step</var> as <code>floor([=input progress
237-
value=] &times; <var>steps</var>)</code> clamped to the range [0,
238-
<var>steps</var>].
237+
value=] &times; [=steps=])</code> clamped to the range [0,
238+
[=steps=]].
239239

240-
1. If the <var>step position</var> property is <a value
241-
for="steps()">start</a> and <var>current step</var> &lt; <var>steps</var>,
242-
increment <var>current step</var> by one.
240+
1. If the [=step position=] property is <a value for="steps()">start</a> and
241+
<var>current step</var> &lt; [=steps=], increment <var>current
242+
step</var> by one.
243243

244244
1. If <em>all</em> of the following conditions are true:
245245

246246
* the [=before flag=] is set,
247247
* <var>current step</var> &gt; 0, <em>and</em>
248-
* [=input progress value=] &times; <var>steps</var> mod 1 equals zero
249-
(that is, if [=input progress value=] &times; <var>steps</var> is
248+
* [=input progress value=] &times; [=steps=] mod 1 equals zero
249+
(that is, if [=input progress value=] &times; [=steps=] is
250250
integral), then
251251

252252
decrement <var>current step</var> by one.
253253

254254
1. The [=output progress value=] is <code><var>current step</var>
255-
/ <var>steps</var></code>.
255+
/ [=steps=]</code>.
256256

257257
<div class=example>
258258

259259
As an example of how the [=before flag=] affects the behavior of this function,
260-
consider an animation with a [=step timing function=] whose <var>step
261-
position</var> is <a value for="steps()">start</a> and which has a positive
260+
consider an animation with a [=step timing function=] whose [=step
261+
position=] is <a value for="steps()">start</a> and which has a positive
262262
delay and backwards fill.
263263

264264
For example, using CSS animation:
@@ -299,7 +299,7 @@ The meaning of each value is as follows:
299299
It must be a positive integer greater than 0.
300300
The second parameter, which is optional, is
301301
either the value <dfn value for="steps()">start</dfn> or <dfn value
302-
for="steps()">end</dfn>, and specifies the <var>step position</var>.
302+
for="steps()">end</dfn>, and specifies the [=step position=].
303303
If the second parameter is omitted, it is given the value ''end''.
304304

305305
</dl>
@@ -329,7 +329,7 @@ defined in [[CSSOM]] with the following additional requirements:
329329
''steps()'' function or either of the ''step-start'' or ''step-end''
330330
keywords, are serialized as follows:
331331

332-
1. If the <var>step position</var> is ''end'', serialize
332+
1. If the [=step position=] is ''end'', serialize
333333
as <a lt="steps()" function>steps(&lt;integer&gt;)</a>.
334334

335335
2. Otherwise, serialize as <a lt="steps()"

0 commit comments

Comments
 (0)