Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b4bad72
Calculating progress & serialising linear-spline
jakearchibald Jun 24, 2022
1c326ef
Define function creation
jakearchibald Jun 24, 2022
1e5b11d
Update largest number when inferring 0 for the first item
jakearchibald Jun 24, 2022
a4c01be
Simplify serialisation
jakearchibald Jun 27, 2022
8276f40
Spec tidy up
jakearchibald Jun 27, 2022
0e5043f
Connecting parsing and serialising
jakearchibald Jun 27, 2022
f621932
Fix indenting
jakearchibald Jun 27, 2022
ef29eae
Dark mode figures
jakearchibald Jul 6, 2022
2739467
Merge remote-tracking branch 'origin/main' into css-easing-2-linear-s…
jakearchibald Jul 6, 2022
05473a9
Markdown headings
jakearchibald Jul 6, 2022
f3c7508
Switch back to linear()
jakearchibald Jul 6, 2022
973a84a
Missed a few old spline references
jakearchibald Jul 7, 2022
c6fe005
Examples
jakearchibald Jul 8, 2022
c51794a
Existing examples are good enough IMO
jakearchibald Jul 8, 2022
8e38422
Forgot to specify 'index'
jakearchibald Jul 8, 2022
8fbc910
Missing comma
jakearchibald Jul 8, 2022
5221e11
Adding serialization examples
jakearchibald Jul 10, 2022
589a383
Be more specific about the linear keyword
jakearchibald Jul 10, 2022
ce4c5d1
A little more specific about the serialization of linear()
jakearchibald Jul 11, 2022
932ce07
Apply suggestions from code review
jakearchibald Jul 12, 2022
a509029
Fixes following review
jakearchibald Jul 12, 2022
d75bd5c
Clarify note
jakearchibald Jul 12, 2022
bdbb745
Make all graphs transparent
jakearchibald Jul 17, 2022
17e0ad3
One more
jakearchibald Jul 17, 2022
8ee8bf2
Move examples after normative text
jakearchibald Jul 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Connecting parsing and serialising
  • Loading branch information
jakearchibald committed Jun 27, 2022
commit 0e5043f9fbd0e8f1320fd5ab8c0ae75c2b972166
12 changes: 10 additions & 2 deletions css-easing-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ The syntax for specifying an [=easing function=] is as follows:

<div class="prod"><dfn type>&lt;easing-function&gt;</dfn> =
''linear'' |
''linear-spline()'' |
<<cubic-bezier-easing-function>> |
<<step-easing-function>></div>

Expand All @@ -135,7 +136,7 @@ The syntax for the [=linear easing function=] is simply the

<h3 id=the-linear-spline-easing-function>The linear spline easing function: ''linear-spline()''</h3>

<dfn function lt="linear-spline()">linear-spline(<<linear-spline-stop-list>>)</dfn>
Note: TODO - add developer-facing description, with diagrams and examples.

A <dfn export>linear spline easing function</dfn>
is an [=easing function=]
Expand Down Expand Up @@ -164,6 +165,10 @@ that has:

<h4 id=linear-spline-easing-function-syntax>Syntax</h4>

A [=linear spline easing function=] has the following syntax:

<dfn function lt="linear-spline()">linear-spline(<<linear-spline-stop-list>>)</dfn>

<pre class="prod">
<dfn>&lt;linear-spline-stop-list></dfn> = [ <<linear-spline-stop>> ]#
<dfn>&lt;linear-spline-stop></dfn> = <<number>> && <<linear-spline-stop-length>>?
Expand Down Expand Up @@ -239,7 +244,7 @@ It returns a [=linear spline easing function=].

<section algorithm="linear spline easing function">

To get a [=linear spline easing function=]'s (|linearSplineEasingFunction|) <dfn for="linear spline easing function" export>serialized computed value</dfn>
To get a [=linear spline easing function=]'s (|linearSplineEasingFunction|) <dfn for="linear spline easing function" export>serialized computed value</dfn>,
perform the following.
It returns a [=string=].

Expand Down Expand Up @@ -615,6 +620,9 @@ defined in [[CSSOM]] with the following additional requirements:
2. Otherwise, serialize as <a lt="steps()"
function>steps(&lt;integer&gt;, &lt;step-position&gt;)</a>.

* A [=Linear spline easing function=] is serialized by getting its
[=linear spline easing function/serialized computed value=].

Privacy and Security Considerations {#priv-sec}
===================================

Expand Down