Skip to content

Commit

Permalink
[css-timing] Add section on serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Jan 19, 2017
1 parent a53cb55 commit 6165ee5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions css-timing/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,24 @@ The syntax for specifying a [=timing function=] is as follows:
''linear'' |
<<cubic-bezier-timing-function>> |
<<step-timing-function>></div>

Serialization {#serializing-a-timing-function}
-------------

Timing functions are serialized using the common serialization patterns
defined in [[CSSOM]] with the following additional requirements:

* The keyword values ''ease'', ''linear'', ''ease-in'', ''ease-out'',
and ''ease-in-out'' are serialized as-is, that is, they are
<em>not</em> converted to the equivalent ''cubic-bezier()''
function before serializing.

* Step timing functions, whether they are specified using the
''steps()'' function or either of the ''step-start'' or ''step-end''
keywords, are serialized as follows:

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

2. Otherwise, serialize as <a lt="steps()"
function>steps(&lt;integer&gt;, start)</a>.

0 comments on commit 6165ee5

Please sign in to comment.