Skip to content

Commit 6165ee5

Browse files
committed
[css-timing] Add section on serialization
1 parent a53cb55 commit 6165ee5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

css-timing/Overview.bs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,24 @@ The syntax for specifying a [=timing function=] is as follows:
313313
''linear'' |
314314
<<cubic-bezier-timing-function>> |
315315
<<step-timing-function>></div>
316+
317+
Serialization {#serializing-a-timing-function}
318+
-------------
319+
320+
Timing functions are serialized using the common serialization patterns
321+
defined in [[CSSOM]] with the following additional requirements:
322+
323+
* The keyword values ''ease'', ''linear'', ''ease-in'', ''ease-out'',
324+
and ''ease-in-out'' are serialized as-is, that is, they are
325+
<em>not</em> converted to the equivalent ''cubic-bezier()''
326+
function before serializing.
327+
328+
* Step timing functions, whether they are specified using the
329+
''steps()'' function or either of the ''step-start'' or ''step-end''
330+
keywords, are serialized as follows:
331+
332+
1. If the <var>step position</var> is ''end'', serialize
333+
as <a lt="steps()" function>steps(&lt;integer&gt;)</a>.
334+
335+
2. Otherwise, serialize as <a lt="steps()"
336+
function>steps(&lt;integer&gt;, start)</a>.

0 commit comments

Comments
 (0)