Skip to content

Commit 886d457

Browse files
committed
[css-easing-1][css-easing-2] Harmonize definitions of the linear keyword while avoiding normative ref from level 1 to 2, fix #10734
1 parent d2c692f commit 886d457

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

css-easing-1/Overview.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ WPT Display: closed
4242
}
4343
}
4444
</pre>
45+
<pre class="link-defaults">
46+
spec:css-easing-1; type:dfn; text:easing function
47+
</pre>
4548

4649
Introduction {#introduction}
4750
============================
@@ -134,14 +137,11 @@ The syntax for specifying an [=easing function=] is as follows:
134137

135138
<h3 id=the-linear-easing-function oldids=linear-timing-function-section>The linear easing function: ''linear''</h3>
136139

137-
The <dfn export lt="linear easing function|linear timing function">linear easing
138-
function</dfn> is an identity function
139-
meaning that its [=output progress value=] is equal to the
140+
The <dfn dfn-type=value for="easing-function">linear</dfn> keyword
141+
produces an identity linear [=easing function=]
142+
whose [=output progress value=] is equal to the
140143
[=input progress value=] for all inputs.
141144

142-
The syntax for the [=linear easing function=] is simply the
143-
<dfn dfn-type=value for=easing-function>linear</dfn> keyword.
144-
145145

146146
<h3 id=cubic-bezier-easing-functions oldids=cubic-bezier-timing-functions>Cubic
147147
B&eacute;zier easing functions:

css-easing-2/Overview.bs

+4-15
Original file line numberDiff line numberDiff line change
@@ -449,23 +449,12 @@ It returns an [=output progress value=].
449449
<h3 id=the-linear-easing-keyword oldids=linear-timing-function-section>The linear easing keyword: ''linear''</h3>
450450

451451
The <dfn dfn-type=value for="<easing-function>">linear</dfn> keyword
452-
produces a [=linear easing function=]
453-
with two [=linear easing function/points=]:
454-
455-
1. : [=linear easing point/input=]
456-
:: 0
457-
: [=linear easing point/output=]
458-
:: 0
459-
460-
1. : [=linear easing point/input=]
461-
:: 1
462-
: [=linear easing point/output=]
463-
:: 1
464-
465-
Note: This results in an identity function,
466-
meaning that its [=output progress value=] is equal to the
452+
produces an identity [=linear easing function=]
453+
whose [=output progress value=] is equal to the
467454
[=input progress value=] for all inputs.
468455

456+
This gives the same result as ''linear(0, 1)''.
457+
469458
Note: Although this produces a [=linear easing function=],
470459
uses of the keyword ''linear'' always serialize as-is, to ''linear''.
471460
Whereas the function equivalent ''linear(0, 1)'' will serialize to ''linear(0 0%, 1 100%)''.

0 commit comments

Comments
 (0)