File size: 94,324 Bytes
077605d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
<!doctype html><html lang="en">
 <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
  <title>CSS Easing Functions Level 1</title>
  <meta content="CRD" name="w3c-status">
  <meta content="Bikeshed version 2b7cf6020, updated Fri Feb 10 17:54:11 2023 -0800" name="generator">
  <link href="https://www.w3.org/TR/css-easing-1/" rel="canonical">
  <meta content="614b76c39c3efda83916972346115611b505157d" name="document-revision">
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
    color: var(--a-normal-text);
    font-size: inherit;
    font-family: inherit;
}
.css::before, .property::before, .descriptor::before {
    content: "‘";
}
.css::after, .property::after, .descriptor::after {
    content: "’";
}
.property, .descriptor {
    /* Don't wrap property and descriptor names */
    white-space: nowrap;
}
.type { /* CSS value <type> */
    font-style: italic;
}
pre .property::before, pre .property::after {
    content: "";
}
[data-link-type="property"]::before,
[data-link-type="propdesc"]::before,
[data-link-type="descriptor"]::before,
[data-link-type="value"]::before,
[data-link-type="function"]::before,
[data-link-type="at-rule"]::before,
[data-link-type="selector"]::before,
[data-link-type="maybe"]::before {
    content: "‘";
}
[data-link-type="property"]::after,
[data-link-type="propdesc"]::after,
[data-link-type="descriptor"]::after,
[data-link-type="value"]::after,
[data-link-type="function"]::after,
[data-link-type="at-rule"]::after,
[data-link-type="selector"]::after,
[data-link-type="maybe"]::after {
    content: "’";
}

[data-link-type].production::before,
[data-link-type].production::after,
.prod [data-link-type]::before,
.prod [data-link-type]::after {
    content: "";
}

[data-link-type=element],
[data-link-type=element-attr] {
    font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: .9em;
}
[data-link-type=element]::before { content: "<" }
[data-link-type=element]::after  { content: ">" }

[data-link-type=biblio] {
    white-space: pre;
}</style>
<style>/* style-counters */

body {
    counter-reset: example figure issue;
}
.issue {
    counter-increment: issue;
}
.issue:not(.no-marker)::before {
    content: "Issue " counter(issue);
}

.example {
    counter-increment: example;
}
.example:not(.no-marker)::before {
    content: "Example " counter(example);
}
.invalid.example:not(.no-marker)::before,
.illegal.example:not(.no-marker)::before {
    content: "Invalid Example" counter(example);
}

figcaption {
    counter-increment: figure;
}
figcaption:not(.no-marker)::before {
    content: "Figure " counter(figure) " ";
}</style>
<style>/* style-dfn-panel */

:root {
    --dfnpanel-bg: #ddd;
    --dfnpanel-text: var(--text);
}
.dfn-panel {
    position: absolute;
    z-index: 35;
    height: auto;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 300px;
    max-height: 500px;
    overflow: auto;
    padding: 0.5em 0.75em;
    font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
    background: var(--dfnpanel-bg);
    color: var(--dfnpanel-text);
    border: outset 0.2em;
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: var(--dfnpanel-text); }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel > b + b { margin-top: 0.25em; }
.dfn-panel ul { padding: 0; }
.dfn-panel li { list-style: inside; }
.dfn-panel.activated {
    display: inline-block;
    position: fixed;
    left: .5em;
    bottom: 2em;
    margin: 0 auto;
    max-width: calc(100vw - 1.5em - .4em - .5em);
    max-height: 30vh;
}

.dfn-paneled { cursor: pointer; }
</style>
<style>/* style-issues */

a[href].issue-return {
    float: right;
    float: inline-end;
    color: var(--issueheading-text);
    font-weight: bold;
    text-decoration: none;
}
</style>
<style>/* style-md-lists */

/* This is a weird hack for me not yet following the commonmark spec
   regarding paragraph and lists. */
[data-md] > :first-child {
    margin-top: 0;
}
[data-md] > :last-child {
    margin-bottom: 0;
}</style>
<style>/* style-selflinks */

:root {
    --selflink-text: white;
    --selflink-bg: gray;
    --selflink-hover-text: black;
}
.heading, .issue, .note, .example, li, dt {
    position: relative;
}
a.self-link {
    position: absolute;
    top: 0;
    left: calc(-1 * (3.5rem - 26px));
    width: calc(3.5rem - 26px);
    height: 2em;
    text-align: center;
    border: none;
    transition: opacity .2s;
    opacity: .5;
}
a.self-link:hover {
    opacity: 1;
}
.heading > a.self-link {
    font-size: 83%;
}
.example > a.self-link,
.note > a.self-link,
.issue > a.self-link {
    /* These blocks are overflow:auto, so positioning outside
       doesn't work. */
    left: auto;
    right: 0;
}
li > a.self-link {
    left: calc(-1 * (3.5rem - 26px) - 2em);
}
dfn > a.self-link {
    top: auto;
    left: auto;
    opacity: 0;
    width: 1.5em;
    height: 1.5em;
    background: var(--selflink-bg);
    color: var(--selflink-text);
    font-style: normal;
    transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
    opacity: 1;
}
dfn > a.self-link:hover {
    color: var(--selflink-hover-text);
}

a.self-link::before            { content: "¶"; }
.heading > a.self-link::before { content: "§"; }
dfn > a.self-link::before      { content: "#"; }
</style>
<style>/* style-syntax-highlighting */

code.highlight { padding: .1em; border-radius: .3em; }
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; }

.highlight:not(.idl) { background: rgba(0, 0, 0, .03); }
c-[a] { color: #990055 } /* Keyword.Declaration */
c-[b] { color: #990055 } /* Keyword.Type */
c-[c] { color: #708090 } /* Comment */
c-[d] { color: #708090 } /* Comment.Multiline */
c-[e] { color: #0077aa } /* Name.Attribute */
c-[f] { color: #669900 } /* Name.Tag */
c-[g] { color: #222222 } /* Name.Variable */
c-[k] { color: #990055 } /* Keyword */
c-[l] { color: #000000 } /* Literal */
c-[m] { color: #000000 } /* Literal.Number */
c-[n] { color: #0077aa } /* Name */
c-[o] { color: #999999 } /* Operator */
c-[p] { color: #999999 } /* Punctuation */
c-[s] { color: #a67f59 } /* Literal.String */
c-[t] { color: #a67f59 } /* Literal.String.Single */
c-[u] { color: #a67f59 } /* Literal.String.Double */
c-[cp] { color: #708090 } /* Comment.Preproc */
c-[c1] { color: #708090 } /* Comment.Single */
c-[cs] { color: #708090 } /* Comment.Special */
c-[kc] { color: #990055 } /* Keyword.Constant */
c-[kn] { color: #990055 } /* Keyword.Namespace */
c-[kp] { color: #990055 } /* Keyword.Pseudo */
c-[kr] { color: #990055 } /* Keyword.Reserved */
c-[ld] { color: #000000 } /* Literal.Date */
c-[nc] { color: #0077aa } /* Name.Class */
c-[no] { color: #0077aa } /* Name.Constant */
c-[nd] { color: #0077aa } /* Name.Decorator */
c-[ni] { color: #0077aa } /* Name.Entity */
c-[ne] { color: #0077aa } /* Name.Exception */
c-[nf] { color: #0077aa } /* Name.Function */
c-[nl] { color: #0077aa } /* Name.Label */
c-[nn] { color: #0077aa } /* Name.Namespace */
c-[py] { color: #0077aa } /* Name.Property */
c-[ow] { color: #999999 } /* Operator.Word */
c-[mb] { color: #000000 } /* Literal.Number.Bin */
c-[mf] { color: #000000 } /* Literal.Number.Float */
c-[mh] { color: #000000 } /* Literal.Number.Hex */
c-[mi] { color: #000000 } /* Literal.Number.Integer */
c-[mo] { color: #000000 } /* Literal.Number.Oct */
c-[sb] { color: #a67f59 } /* Literal.String.Backtick */
c-[sc] { color: #a67f59 } /* Literal.String.Char */
c-[sd] { color: #a67f59 } /* Literal.String.Doc */
c-[se] { color: #a67f59 } /* Literal.String.Escape */
c-[sh] { color: #a67f59 } /* Literal.String.Heredoc */
c-[si] { color: #a67f59 } /* Literal.String.Interpol */
c-[sx] { color: #a67f59 } /* Literal.String.Other */
c-[sr] { color: #a67f59 } /* Literal.String.Regex */
c-[ss] { color: #a67f59 } /* Literal.String.Symbol */
c-[vc] { color: #0077aa } /* Name.Variable.Class */
c-[vg] { color: #0077aa } /* Name.Variable.Global */
c-[vi] { color: #0077aa } /* Name.Variable.Instance */
c-[il] { color: #000000 } /* Literal.Number.Integer.Long */
</style>
  <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-CRD" rel="stylesheet">
 <body class="h-entry">
  <div class="head">
   <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
   <h1 class="p-name no-ref" id="title">CSS Easing Functions Level 1</h1>
   <p id="w3c-state"><a href="https://www.w3.org/standards/types#CRD">W3C Candidate Recommendation Draft</a>, <time class="dt-updated" datetime="2023-02-13">13 February 2023</time></p>
   <details open>
    <summary>More details about this document</summary>
    <div data-fill-with="spec-metadata">
     <dl>
      <dt>This version:
      <dd><a class="u-url" href="https://www.w3.org/TR/2023/CRD-css-easing-1-20230213/">https://www.w3.org/TR/2023/CRD-css-easing-1-20230213/</a>
      <dt>Latest published version:
      <dd><a href="https://www.w3.org/TR/css-easing-1/">https://www.w3.org/TR/css-easing-1/</a>
      <dt>Editor's Draft:
      <dd><a href="https://drafts.csswg.org/css-easing/">https://drafts.csswg.org/css-easing/</a>
      <dt>Previous Versions:
      <dd><a href="https://www.w3.org/TR/2021/CRD-css-easing-1-20210401/" rel="prev">https://www.w3.org/TR/2021/CRD-css-easing-1-20210401/</a>
      <dd><a href="https://www.w3.org/TR/2019/CR-css-easing-1-20190430/" rel="prev">https://www.w3.org/TR/2019/CR-css-easing-1-20190430/</a>
      <dt>History:
      <dd><a class="u-url" href="https://www.w3.org/standards/history/css-easing-1">https://www.w3.org/standards/history/css-easing-1</a>
      <dt>Implementation Report:
      <dd><a href="https://wpt.fyi/results/css/css-easing?label=master&amp;label=experimental&amp;aligned">https://wpt.fyi/results/css/css-easing?label=master&amp;label=experimental&amp;aligned</a>
      <dt>Feedback:
      <dd><a href="https://github.com/w3c/csswg-drafts/labels/css-easing-1">CSSWG Issues Repository</a>
      <dt class="editor">Editors:
      <dd class="editor p-author h-card vcard" data-editor-id="43194"><a class="p-name fn u-email email" href="mailto:bbirtles@mozilla.com">Brian Birtles</a> (<a class="p-org org" href="https://www.mozilla.org/">Mozilla</a>)
      <dd class="editor p-author h-card vcard" data-editor-id="42080"><a class="p-name fn u-email email" href="mailto:dino@apple.com">Dean Jackson</a> (<a class="p-org org" href="https://www.apple.com/">Apple Inc</a>)
      <dd class="editor p-author h-card vcard" data-editor-id="62267"><span class="p-name fn">Matt Rakow</span> (<span class="p-org org">Microsoft</span>)
      <dt class="editor">Former Editor:
      <dd class="editor p-author h-card vcard" data-editor-id="47691"><a class="p-name fn u-email email" href="mailto:shans@google.com">Shane Stephens</a> (<span class="p-org org">Google</span>)
      <dt>Suggest an Edit for this Spec:
      <dd><a href="https://github.com/w3c/csswg-drafts/blob/main/css-easing-1/Overview.bs">GitHub Editor</a>
      <dt>Participate:
      <dd>IRC: <a href="ircs://irc.w3.org:6667/css">#css</a> on W3C’s IRC
      <dt>Tests:
      <dd><a href="https://github.com/web-platform-tests/wpt/tree/master/css/css-easing">web-platform-tests css/css-easing</a>
     </dl>
    </div>
   </details>
   <div data-fill-with="warning"></div>
   <p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2023 <a href="https://www.w3.org/">World Wide Web Consortium</a>. <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document" rel="license">permissive document license</a> rules apply. </p>
   <hr title="Separator for header">
  </div>
  <div class="p-summary" data-fill-with="abstract">
   <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
   <p>This CSS module describes a way for authors to define a transformation

    that controls the rate of change of some value.
    Applied to animations, such transformations can be used to produce
    animations that mimic physical phenomena such as momentum or to cause the
    animation to move in discrete steps producing robot-like movement.</p>
    <a href="https://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, etc. 
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content">Status of this document</span></h2>
  <div data-fill-with="status">
   <p><em>This section describes the status of this document at the time of its publication.
	A list of current W3C publications
	and the latest revision of this technical report
	can be found in the <a href="https://www.w3.org/TR/">W3C technical reports index at https://www.w3.org/TR/.</a></em> </p>
   <p> This document was published
	by the <a href="https://www.w3.org/groups/wg/css">CSS Working Group</a> as a <strong>Candidate Recommendation Draft</strong> using the <a href="https://www.w3.org/2021/Process-20211102/#recs-and-notes">Recommendation
      track</a>.
	Publication as a Candidate Recommendation
	does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members.
	A Candidate Recommendation Draft
	integrates changes from the previous Candidate Recommendation
	that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot. </p>
   <p> This is a draft document
	and may be updated, replaced
	or obsoleted by other documents at any time.
	It is inappropriate to cite this document as other than work in progress. </p>
   <p>Please send feedback
	by <a href="https://github.com/w3c/csswg-drafts/issues">filing issues in GitHub</a> (preferred),
	including the spec code “css-easing” in the title, like this:
	“[css-easing] <i>…summary of comment…</i>”.
	All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>.
	Alternately, feedback can be sent to the (<a href="https://lists.w3.org/Archives/Public/www-style/">archived</a>) public mailing list <a href="mailto:www-style@w3.org?Subject=%5Bcss-easing%5D%20PUT%20SUBJECT%20HERE">www-style@w3.org</a>. </p>
   <p>This document is governed by the <a href="https://www.w3.org/2021/Process-20211102/" id="w3c_process_revision">2 November 2021 W3C Process Document</a>. </p>
   <p>This document was produced by a group operating under the <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/">W3C Patent Policy</a>.
	W3C maintains a <a href="https://www.w3.org/groups/wg/css/ipr" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
	that page also includes instructions for disclosing a patent.
	An individual who has actual knowledge of a patent which the individual believes
	contains <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
   <p></p>
  </div>
  <div data-fill-with="at-risk"></div>
  <nav data-fill-with="table-of-contents" id="toc">
   <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
   <ol class="toc" role="directory">
    <li>
     <a href="#introduction"><span class="secno">1</span> <span class="content">Introduction</span></a>
     <ol class="toc">
      <li><a href="#values"><span class="secno">1.1</span> <span class="content"> Value Definitions</span></a>
     </ol>
    <li>
     <a href="#easing-functions"><span class="secno">2</span> <span class="content">Easing functions</span></a>
     <ol class="toc">
      <li><a href="#the-linear-easing-function"><span class="secno">2.1</span> <span class="content">The linear easing function: <span class="css">linear</span></span></a>
      <li>
       <a href="#cubic-bezier-easing-functions"><span class="secno">2.2</span> <span class="content">Cubic
Bézier easing functions: <span class="css">ease</span>, <span class="css">ease-in</span>, <span class="css">ease-out</span>, <span class="css">ease-in-out</span>, <span class="css">cubic-bezier()</span></span></a>
       <ol class="toc">
        <li><a href="#cubic-bezier-algo"><span class="secno">2.2.1</span> <span class="content">Output of a cubic bézier easing function</span></a>
       </ol>
      <li>
       <a href="#step-easing-functions"><span class="secno">2.3</span> <span class="content">Step easing functions: <span class="css">step-start</span>, <span class="css">step-end</span>, <span class="css">steps()</span></span></a>
       <ol class="toc">
        <li><a href="#step-easing-algo"><span class="secno">2.3.1</span> <span class="content">Output of
a step easing function</span></a>
       </ol>
      <li><a href="#serialization"><span class="secno">2.4</span> <span class="content">Serialization</span></a>
     </ol>
    <li><a href="#priv-sec"><span class="secno">3</span> <span class="content">Privacy and Security Considerations</span></a>
    <li><a href="#changes"><span class="secno">4</span> <span class="content">Changes</span></a>
    <li><a href="#acknowledgements"><span class="secno">5</span> <span class="content">Acknowledgements</span></a>
    <li>
     <a href="#w3c-conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
     <ol class="toc">
      <li><a href="#w3c-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
      <li><a href="#w3c-conformance-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
      <li>
       <a href="#w3c-partial"><span class="secno"></span> <span class="content"> Partial implementations</span></a>
       <ol class="toc">
        <li><a href="#w3c-conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a>
       </ol>
      <li><a href="#w3c-testing"><span class="secno"></span> <span class="content"> Non-experimental implementations</span></a>
      <li><a href="#w3c-cr-exit-criteria"><span class="secno"></span> <span class="content"> CR exit criteria</span></a>
     </ol>
    <li>
     <a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
     <ol class="toc">
      <li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
      <li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
     </ol>
    <li>
     <a href="#references"><span class="secno"></span> <span class="content">References</span></a>
     <ol class="toc">
      <li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
      <li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
     </ol>
   </ol>
  </nav>
  <main>
   <h2 class="heading settled" data-level="1" id="introduction"><span class="secno">1. </span><span class="content">Introduction</span><a class="self-link" href="#introduction"></a></h2>
   <p><em>This section is not normative.</em></p>
   <p>It is often desirable to control the rate at which some value changes.
For example, gradually increasing the speed at which an element moves can
give the element a sense of weight as it appears to gather momentum.
This can be used to produce intuitive user interface elements or convincing
cartoon props that behave like their physical counterparts.
Alternatively, it is sometimes desirable for animation to move forwards in
distinct steps such as a segmented wheel that rotates such that the segments
always appear in the same position.</p>
   <p>Similarly, controlling the rate of change of gradient interpolation can be
used to produce different visual effects such as suggesting a concave or convex
surface, or producing a striped effect.</p>
   <p><a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function">Easing functions</a> provide a means to transform such values by taking an
input progress value and producing a corresponding transformed output progress
value.</p>
   <figure>
     <img alt="Example of an easing function that produces an ease-in effect." src="images/easing-function-example.svg" width="400"> 
    <figcaption> Example of an easing function that produces an ease-in effect.<br> Given an input progress of 0.7, the easing function scales the
    value to produce an output progress of 0.52.<br> Applying this easing function to an animation would cause it to progress
    more slowly at first but then gradually progress more quickly. </figcaption>
   </figure>
   <h3 class="heading settled" data-level="1.1" id="values"><span class="secno">1.1. </span><span class="content"> Value Definitions</span><a class="self-link" href="#values"></a></h3>
   <p>This specification uses the <a href="https://www.w3.org/TR/css-values-3/#value-defs">value definition syntax</a> from <a data-link-type="biblio" href="#biblio-css-values-3" title="CSS Values and Units Module Level 3">[CSS-VALUES-3]</a>.
  Value types not defined in this specification are defined in CSS Values &amp; Units <span title="CSS Values and Units Module Level 3">[CSS-VALUES-3]</span>.
  Combination with other CSS modules may expand the definitions of these value types.</p>
   <h2 class="heading settled" data-level="2" id="easing-functions"><span class="secno">2. </span><span class="content">Easing functions</span><span id="timing-functions"></span><a class="self-link" href="#easing-functions"></a></h2>
   <p>An <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-lt="easing function|timing function" id="easing-function">easing function</dfn> takes
an <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value">input progress value</a> and produces an <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value">output progress value</a>.</p>
   <p>An <a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function①">easing function</a> must be a pure function meaning that for a given set of
inputs, it always produces the same <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value①">output progress value</a>.</p>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="input-progress-value">input progress value</dfn> is a real number in the range [-∞,
∞].
Typically, the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①">input progress value</a> is in the range [0, 1] but this may
not be the case when <a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function②">easing functions</a> are chained together.</p>
   <div class="note" role="note">
    <p>An example of when easing functions are chained together occurs in
Web Animations <a data-link-type="biblio" href="#biblio-web-animations" title="Web Animations">[WEB-ANIMATIONS]</a> where the output of the easing function specified on an animation effect
may become the input to an easing function specified on
one of the keyframes of a keyframe effect.
In this scenario,
the input to the easing function on the keyframe effect
may be outside the range [0, 1].</p>
   </div>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="output-progress-value">output progress value</dfn> is a real number in the
range [-∞, ∞].</p>
   <p>Some types of easing functions also take an additional boolean <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag">before flag</a> input which is defined subsequently.</p>
   <p>This specification defines four types of easing functions whose definitions
follow.</p>
   <p>The syntax for specifying an <a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function③">easing function</a> is as follows:</p>
   <div class="prod"><dfn class="css" data-dfn-type="type" data-export id="typedef-easing-function">&lt;easing-function><a class="self-link" href="#typedef-easing-function"></a></dfn> = <a class="css" data-link-type="maybe" href="#valdef-easing-function-linear" id="ref-for-valdef-easing-function-linear">linear</a> <a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-one" id="ref-for-comb-one">|</a> <a class="production css" data-link-type="type" href="#typedef-cubic-bezier-easing-function" id="ref-for-typedef-cubic-bezier-easing-function" title="Expands to: cubic-bezier() | ease | ease-in | ease-in-out | ease-out">&lt;cubic-bezier-easing-function></a> <span id="ref-for-comb-one①">|</span> <a class="production css" data-link-type="type" href="#typedef-step-easing-function" id="ref-for-typedef-step-easing-function" title="Expands to: step-end | step-start | steps()">&lt;step-easing-function></a></div>
   <h3 class="heading settled" data-level="2.1" id="the-linear-easing-function"><span class="secno">2.1. </span><span class="content">The linear easing function: <a class="css" data-link-type="maybe" href="#valdef-easing-function-linear" id="ref-for-valdef-easing-function-linear①">linear</a></span><span id="linear-timing-function-section"></span><a class="self-link" href="#the-linear-easing-function"></a></h3>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export data-lt="linear easing function|linear timing function" id="linear-easing-function">linear easing
function</dfn> is an identity function
meaning that its <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value②">output progress value</a> is equal to the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value②">input progress value</a> for all inputs.</p>
   <p>The syntax for the <a data-link-type="dfn" href="#linear-easing-function" id="ref-for-linear-easing-function">linear easing function</a> is simply the <dfn class="dfn-paneled css" data-dfn-for="easing-function" data-dfn-type="value" data-export id="valdef-easing-function-linear">linear</dfn> keyword.</p>
   <h3 class="heading settled" data-level="2.2" id="cubic-bezier-easing-functions"><span class="secno">2.2. </span><span class="content">Cubic
Bézier easing functions: <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease" id="ref-for-valdef-cubic-bezier-easing-function-ease">ease</a>, <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in" id="ref-for-valdef-cubic-bezier-easing-function-ease-in">ease-in</a>, <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-out">ease-out</a>, <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-in-out">ease-in-out</a>, <a class="css" data-link-type="maybe" href="#funcdef-cubic-bezier-easing-function-cubic-bezier" id="ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier">cubic-bezier()</a></span><span id="cubic-bezier-timing-functions"></span><a class="self-link" href="#cubic-bezier-easing-functions"></a></h3>
   <p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="cubic-bzier-easing-function">cubic Bézier easing function</dfn> is
a type of <a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function④">easing function</a> defined by four real numbers
that specify the two control points, <var>P1</var> and <var>P2</var>, of a cubic Bézier curve whose
end points <var>P0</var> and <var>P3</var> are fixed at (0, 0) and (1, 1) respectively.
The <var>x</var> coordinates of <var>P1</var> and <var>P2</var> are restricted to the range [0, 1].</p>
   <figure>
     <img alt="A cubic Bezier curve used as an easing function." src="images/cubic-bezier-easing-curve.svg" width="400"> 
    <figcaption> A cubic Bézier curve used as an easing function.<br> The shape of the curve is determined by the location of the control
    points <var>P1</var> and <var>P2</var>.<br> Input progress values serve as <var>x</var> values of the curve,
    whilst the <var>y</var> values are the output progress values. </figcaption>
   </figure>
   <p>A <a data-link-type="dfn" href="#cubic-bzier-easing-function" id="ref-for-cubic-bzier-easing-function">cubic Bézier easing function</a> has the following syntax
(using notation from <a data-link-type="biblio" href="#biblio-css-values-3" title="CSS Values and Units Module Level 3">[CSS-VALUES-3]</a>):</p>
   <div class="prod"><dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-cubic-bezier-easing-function">&lt;cubic-bezier-easing-function></dfn> = <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease" id="ref-for-valdef-cubic-bezier-easing-function-ease①">ease</a> <a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-one" id="ref-for-comb-one②">|</a> <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in" id="ref-for-valdef-cubic-bezier-easing-function-ease-in①">ease-in</a> <span id="ref-for-comb-one③">|</span> <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-out①">ease-out</a> <span id="ref-for-comb-one④">|</span> <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-in-out①">ease-in-out</a> <span id="ref-for-comb-one⑤">|</span> <span class="atom"><a class="css" data-link-type="function" href="#funcdef-cubic-bezier-easing-function-cubic-bezier" id="ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier①">cubic-bezier</a>(<a class="production css" data-link-type="type" href="https://www.w3.org/TR/css-values-4/#number-value" id="ref-for-number-value">&lt;number [0,1]></a><a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-comma" id="ref-for-comb-comma">,</a> <span class="production" id="ref-for-number-value①">&lt;number></span><span id="ref-for-comb-comma①">,</span> <span class="production" id="ref-for-number-value②">&lt;number [0,1]></span><span id="ref-for-comb-comma②">,</span> <span class="production" id="ref-for-number-value③">&lt;number></span>)</span></div>
   <p>The meaning of each value is as follows:</p>
   <dl>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<cubic-bezier-easing-function>" data-dfn-type="value" data-export id="valdef-cubic-bezier-easing-function-ease">ease</dfn>
    <dd data-md>
     <p>Equivalent to <span class="css">cubic-bezier(0.25, 0.1, 0.25, 1)</span>.</p>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<cubic-bezier-easing-function>" data-dfn-type="value" data-export id="valdef-cubic-bezier-easing-function-ease-in">ease-in</dfn>
    <dd data-md>
     <p>Equivalent to <span class="css">cubic-bezier(0.42, 0, 1, 1)</span>.</p>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<cubic-bezier-easing-function>" data-dfn-type="value" data-export id="valdef-cubic-bezier-easing-function-ease-out">ease-out</dfn>
    <dd data-md>
     <p>Equivalent to <span class="css">cubic-bezier(0, 0, 0.58, 1)</span>.</p>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<cubic-bezier-easing-function>" data-dfn-type="value" data-export id="valdef-cubic-bezier-easing-function-ease-in-out">ease-in-out</dfn>
    <dd data-md>
     <p>Equivalent to <span class="css">cubic-bezier(0.42, 0, 0.58, 1)</span>.</p>
    <dt data-md>
    <dt><dfn class="dfn-paneled css" data-dfn-for="<cubic-bezier-easing-function>" data-dfn-type="function" data-export data-lt="cubic-bezier()" id="funcdef-cubic-bezier-easing-function-cubic-bezier">cubic-bezier(<a class="production css" data-link-type="type" href="https://www.w3.org/TR/css-values-4/#number-value" id="ref-for-number-value④">&lt;number [0,1]></a>, <span class="production" id="ref-for-number-value⑤">&lt;number></span>, <span class="production" id="ref-for-number-value⑥">&lt;number [0,1]></span>, <span class="production" id="ref-for-number-value⑦">&lt;number></span>)</dfn>
    <dd data-md>
     <p>Specifies a <a data-link-type="dfn" href="#cubic-bzier-easing-function" id="ref-for-cubic-bzier-easing-function①">cubic Bézier easing function</a>.
The four numbers specify points <var>P1</var> and <var>P2</var> of
the curve as (<var>x1</var>, <var>y1</var>, <var>x2</var>, <var>y2</var>).
Both <var>x</var> values must be in the range [0, 1] or the definition is
invalid.</p>
   </dl>
   <p>The keyword values listed above are illustrated below.</p>
   <figure>
     <img alt="The easing functions produced by keyword values." src="images/curve-keywords.svg" width="500"> 
    <figcaption> The easing functions produced by each of the cubic Bézier easing
    function keyword values. </figcaption>
   </figure>
   <h4 class="heading settled" data-level="2.2.1" id="cubic-bezier-algo"><span class="secno">2.2.1. </span><span class="content">Output of a cubic bézier easing function</span><a class="self-link" href="#cubic-bezier-algo"></a></h4>
   <p>The mapping from input progress to output progress is performed by
determining the corresponding <var>y</var> value (<a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value③">output progress value</a>) for
a given <var>x</var> value (<a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value③">input progress value</a>).
The evaluation of this curve is covered in many sources such as <a data-link-type="biblio" href="#biblio-fund-comp-graphics" title="Fundamentals of Computer Graphics">[FUND-COMP-GRAPHICS]</a>.</p>
   <p>For <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value④">input progress values</a> outside the range [0, 1], the curve is extended
infinitely using tangent of the curve at the closest endpoint as follows:</p>
   <ul>
    <li data-md>
     <p>For <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value⑤">input progress values</a> less than zero,</p>
     <ol>
      <li data-md>
       <p>If the <var>x</var> value of P1 is greater than zero, use
 a straight line that passes through P1 and P0 as the tangent.</p>
      <li data-md>
       <p>Otherwise, if the <var>x</var> value of P2 is greater than
 zero, use a straight line that passes through P2 and P0 as the tangent.</p>
      <li data-md>
       <p>Otherwise, let the <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value④">output progress value</a> be zero for all <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value⑥">input progress values</a> in the range [-∞, 0).</p>
     </ol>
    <li data-md>
     <p>For <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value⑦">input progress values</a> greater than one,</p>
     <ol>
      <li data-md>
       <p>If the <var>x</var> value of P2 is less than one, use
 a straight line that passes through P2 and P3 as the tangent.</p>
      <li data-md>
       <p>Otherwise, if the <var>x</var> value of P1 is less than
 one, use a straight line that passes through P1 and P3 as the tangent.</p>
      <li data-md>
       <p>Otherwise, let the <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value⑤">output progress value</a> be one for all <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value⑧">input progress values</a> in the range (1, ∞].</p>
     </ol>
   </ul>
   <h3 class="heading settled" data-level="2.3" id="step-easing-functions"><span class="secno">2.3. </span><span class="content">Step easing functions: <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-start" id="ref-for-valdef-step-easing-function-step-start">step-start</a>, <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-end" id="ref-for-valdef-step-easing-function-step-end">step-end</a>, <a class="css" data-link-type="maybe" href="#funcdef-step-easing-function-steps" id="ref-for-funcdef-step-easing-function-steps">steps()</a></span><span id="step-timing-functions"></span><a class="self-link" href="#step-easing-functions"></a></h3>
   <p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="step-easing-function">step easing function</dfn> is a type of <a data-link-type="dfn" href="#easing-function" id="ref-for-easing-function⑤">easing function</a> that divides the input time into a specified number of intervals that
are equal in length.
It is defined by a number of <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="steps">steps</dfn>, and a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="step-position">step position</dfn>.
It has following syntax:</p>
   <div class="prod">
     <dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-step-easing-function">&lt;step-easing-function></dfn> = <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-start" id="ref-for-valdef-step-easing-function-step-start①">step-start</a> <a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-one" id="ref-for-comb-one⑥">|</a> <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-end" id="ref-for-valdef-step-easing-function-step-end①">step-end</a> <span id="ref-for-comb-one⑦">|</span> <span class="atom"><a class="css" data-link-type="function" href="#funcdef-step-easing-function-steps" id="ref-for-funcdef-step-easing-function-steps①">steps</a>(<a class="production css" data-link-type="type" href="https://www.w3.org/TR/css-values-4/#integer-value" id="ref-for-integer-value">&lt;integer></a>[<a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-comma" id="ref-for-comb-comma③">,</a> <a class="production css" data-link-type="type" href="#typedef-step-position" id="ref-for-typedef-step-position">&lt;step-position></a>]<a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#mult-opt" id="ref-for-mult-opt">?</a>)</span> 
    <p><dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-step-position">&lt;step-position></dfn> = <a class="css" data-link-type="maybe" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start">jump-start</a> <a data-link-type="grammar" href="https://www.w3.org/TR/css-values-4/#comb-one" id="ref-for-comb-one⑧">|</a> <a class="css" data-link-type="maybe" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end">jump-end</a> <span id="ref-for-comb-one⑨">|</span> <a class="css" data-link-type="maybe" href="#valdef-steps-jump-none" id="ref-for-valdef-steps-jump-none">jump-none</a> <span id="ref-for-comb-one①⓪">|</span> <a class="css" data-link-type="maybe" href="#valdef-steps-jump-both" id="ref-for-valdef-steps-jump-both">jump-both</a> <span id="ref-for-comb-one①①">|</span> <a class="css" data-link-type="maybe" href="#valdef-steps-start" id="ref-for-valdef-steps-start">start</a> <span id="ref-for-comb-one①②">|</span> <a class="css" data-link-type="maybe" href="#valdef-steps-end" id="ref-for-valdef-steps-end">end</a></p>
   </div>
   <p></p>
   <p>The meaning of each value is as follows:</p>
   <dl>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<step-easing-function>" data-dfn-type="value" data-export id="valdef-step-easing-function-step-start">step-start</dfn>
    <dd data-md>
     <p>Computes to <span class="css">steps(1, start)</span></p>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<step-easing-function>" data-dfn-type="value" data-export id="valdef-step-easing-function-step-end">step-end</dfn>
    <dd data-md>
     <p>Computes to <span class="css">steps(1, end)</span></p>
     <figure>
       <img alt="Example step easing keywords." src="images/step-easing-keyword-examples.svg" width="500"> 
      <figcaption> Example step easing function keyword values. </figcaption>
     </figure>
    <dt data-md><dfn class="dfn-paneled css" data-dfn-for="<step-easing-function>" data-dfn-type="function" data-export data-lt="steps()" id="funcdef-step-easing-function-steps">steps(&lt;integer>[, &lt;step-position> ]?)</dfn>
    <dd data-md>
     <p>The first parameter specifies the number of intervals in the function.
It must be a positive integer greater than 0
unless the second parameter is <a class="css" data-link-type="value" href="#valdef-steps-jump-none" id="ref-for-valdef-steps-jump-none①">jump-none</a> in which case it must be a positive integer greater than 1.</p>
     <p>The second parameter, which is optional, specifies the <a data-link-type="dfn" href="#step-position" id="ref-for-step-position">step position</a> using one of the following values:</p>
     <dl>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-jump-start">jump-start</dfn>
      <dd data-md>
       <p>The first rise occurs at <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value⑨">input progress value</a> of 0.</p>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-jump-end">jump-end</dfn>
      <dd data-md>
       <p>The last rise occurs at <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①⓪">input progress value</a> of 1.</p>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-jump-none">jump-none</dfn>
      <dd data-md>
       <p>All rises occur within the range (0, 1).</p>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-jump-both">jump-both</dfn>
      <dd data-md>
       <p>The first rise occurs at <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①①">input progress value</a> of 0
and the last rise occurs at <span id="ref-for-input-progress-value①②">input progress value</span> of 1.</p>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-start">start</dfn>
      <dd data-md>
       <p>Behaves as <a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start①">jump-start</a>.</p>
      <dt data-md><dfn class="dfn-paneled css" data-dfn-for="steps()" data-dfn-type="value" data-export id="valdef-steps-end">end</dfn>
      <dd data-md>
       <p>Behaves as <a class="css" data-link-type="value" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end①">jump-end</a>.</p>
     </dl>
     <p>If the second parameter is omitted, the value <a class="css" data-link-type="maybe" href="#valdef-steps-end" id="ref-for-valdef-steps-end①">end</a> is assumed.</p>
     <p>These values are illustrated below:</p>
     <figure>
       <img alt="Example step easing functions." src="images/step-easing-func-examples.svg" width="500"> 
      <figcaption> Example step easing functions. </figcaption>
     </figure>
   </dl>
   <h4 class="heading settled" data-level="2.3.1" id="step-easing-algo"><span class="secno">2.3.1. </span><span class="content">Output of
a step easing function</span><span id="step-timing-function-algo"></span><a class="self-link" href="#step-easing-algo"></a></h4>
   <p>At the exact point where a step occurs, the result of the function is
conceptually the top of the step. However, an additional <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="before-flag">before flag</dfn> passed as input to the <a data-link-type="dfn" href="#step-easing-function" id="ref-for-step-easing-function">step easing function</a>, if true, will cause the
result of the function to correspond to the bottom of the step at the step
point.</p>
   <div class="example" id="example-7b6395b6">
    <a class="self-link" href="#example-7b6395b6"></a> 
    <p>As an example of how the <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag①">before flag</a> affects the behavior of this function,
consider an animation with a <a data-link-type="dfn" href="#step-easing-function" id="ref-for-step-easing-function①">step easing function</a> whose <a data-link-type="dfn" href="#step-position" id="ref-for-step-position①">step
position</a> is <a class="css" data-link-type="value" href="#valdef-steps-start" id="ref-for-valdef-steps-start①">start</a> and which has a positive
delay and backwards fill.</p>
    <p>For example, using CSS animation:</p>
<pre class="lang-css highlight"><c- k>animation</c-><c- p>:</c-> moveRight <c- m>5</c-><c- k>s</c-> <c- m>1</c-><c- k>s</c-> <c- nf>steps</c-><c- p>(</c-><c- m>5</c-><c- p>,</c-> start<c- p>);</c->
</pre>
    <p>During the delay phase, the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①③">input progress value</a> will be zero but if the <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag②">before flag</a> is set to indicate that the animation has yet to reach its
animation interval, the easing function will produce zero as its <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value⑥">output
progress value</a>, i.e. the bottom of the first step.</p>
    <p>At the exact moment when the animation interval begins, the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①④">input progress
value</a> will still be zero, but the <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag③">before flag</a> will not be set and hence
the result of the easing function will correspond to the top of the first step.</p>
   </div>
   <p>For the purposes of calculating the <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value⑦">output progress value</a>, the <a data-link-type="dfn" href="#step-position" id="ref-for-step-position②">step position</a> <a class="css" data-link-type="value" href="#valdef-steps-start" id="ref-for-valdef-steps-start②">start</a> is considered equivalent to <a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start②">jump-start</a>.
Likewise <a class="css" data-link-type="value" href="#valdef-steps-end" id="ref-for-valdef-steps-end②">end</a> is considered equivalent to <a class="css" data-link-type="value" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end②">jump-end</a>.
As a result, the following algorithm does not make explicit reference to <span id="ref-for-valdef-steps-start③">start</span> or <span id="ref-for-valdef-steps-end③">end</span>.</p>
   <p class="note" role="note"><span class="marker">Note:</span> User agents must still differentiate between <a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start③">jump-start</a> and <a class="css" data-link-type="value" href="#valdef-steps-start" id="ref-for-valdef-steps-start④">start</a> for
the purpose of serialization (see <a href="#serialization">§ 2.4 Serialization</a>).</p>
   <p>The <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value⑧">output progress value</a> is calculated from the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①⑤">input progress value</a> and <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag④">before flag</a> as follows:</p>
   <ol>
    <li data-md>
     <p>Calculate the <var>current step</var> as <code>floor(<a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①⑥">input progress value</a> × <a data-link-type="dfn" href="#steps" id="ref-for-steps">steps</a>)</code>.</p>
    <li data-md>
     <p>If the <a data-link-type="dfn" href="#step-position" id="ref-for-step-position③">step position</a> property is one of:</p>
     <ul>
      <li data-md>
       <p><a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start④">jump-start</a>,</p>
      <li data-md>
       <p><a class="css" data-link-type="value" href="#valdef-steps-jump-both" id="ref-for-valdef-steps-jump-both①">jump-both</a>,</p>
     </ul>
     <p>increment <var>current step</var> by one.</p>
    <li data-md>
     <p>If <em>both</em> of the following conditions are true:</p>
     <ul>
      <li data-md>
       <p>the <a data-link-type="dfn" href="#before-flag" id="ref-for-before-flag⑤">before flag</a> is set, <em>and</em></p>
      <li data-md>
       <p><a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①⑦">input progress value</a> × <a data-link-type="dfn" href="#steps" id="ref-for-steps①">steps</a> mod 1 equals zero
 (that is, if <span id="ref-for-input-progress-value①⑧">input progress value</span> × <span id="ref-for-steps②">steps</span> is
 integral), then</p>
     </ul>
     <p>decrement <var>current step</var> by one.</p>
    <li data-md>
     <p>If <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value①⑨">input progress value</a> ≥ 0 and <var>current step</var> &lt; 0,
 let <var>current step</var> be zero.</p>
    <li data-md>
     <p>Calculate <var>jumps</var> based on the <a data-link-type="dfn" href="#step-position" id="ref-for-step-position④">step position</a> as follows:</p>
     <dl>
      <dt data-md><a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start⑤">jump-start</a> or <a class="css" data-link-type="value" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end③">jump-end</a>
      <dd data-md>
       <p><a data-link-type="dfn" href="#steps" id="ref-for-steps③">steps</a></p>
      <dt data-md><a class="css" data-link-type="value" href="#valdef-steps-jump-none" id="ref-for-valdef-steps-jump-none②">jump-none</a>
      <dd data-md>
       <p><a data-link-type="dfn" href="#steps" id="ref-for-steps④">steps</a> - 1</p>
      <dt data-md><a class="css" data-link-type="value" href="#valdef-steps-jump-both" id="ref-for-valdef-steps-jump-both②">jump-both</a>
      <dd data-md>
       <p><a data-link-type="dfn" href="#steps" id="ref-for-steps⑤">steps</a> + 1</p>
     </dl>
    <li data-md>
     <p>If <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value②⓪">input progress value</a> ≤ 1 and <var>current step</var> > <var>jumps</var>, let <var>current step</var> be <var>jumps</var>.</p>
     <div class="note" role="note">
      <p>Steps 4 and 6 in this procedure ensure that given an <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value②①">input progress
 value</a> in the range [0, 1], a step easing function does not produce an <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value⑨">output progress value</a> outside that range.</p>
      <p>For example, although mathematically we might expect that a step easing
 function with a <a data-link-type="dfn" href="#step-position" id="ref-for-step-position⑤">step position</a> of <a class="css" data-link-type="value" href="#valdef-steps-jump-start" id="ref-for-valdef-steps-jump-start⑥">jump-start</a> would step up (i.e. beyond 1) when the <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value②②">input progress value</a> is 1,
 intuitively,
 when we apply such an easing function to a forwards-filling animation,
 we expect it to produce an <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value①⓪">output progress value</a> of 1
 as the animation fills forwards.</p>
      <p>A similar situation arises for a step easing function with
 a <a data-link-type="dfn" href="#step-position" id="ref-for-step-position⑥">step position</a> of <a class="css" data-link-type="value" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end④">jump-end</a> when applied to an animation during its delay phase.</p>
     </div>
    <li data-md>
     <p>The <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value①①">output progress value</a> is <code><var>current step</var> / <var>jumps</var></code>.</p>
   </ol>
   <h3 class="heading settled" data-level="2.4" id="serialization"><span class="secno">2.4. </span><span class="content">Serialization</span><span id="serializing-a-timing-function"></span><a class="self-link" href="#serialization"></a></h3>
   <p>Easing functions are serialized using the common serialization patterns
defined in <a data-link-type="biblio" href="#biblio-cssom" title="CSS Object Model (CSSOM)">[CSSOM]</a> with the following additional requirements:</p>
   <ul>
    <li data-md>
     <p>The keyword values <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease" id="ref-for-valdef-cubic-bezier-easing-function-ease②">ease</a>, <a class="css" data-link-type="maybe" href="#valdef-easing-function-linear" id="ref-for-valdef-easing-function-linear②">linear</a>, <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in" id="ref-for-valdef-cubic-bezier-easing-function-ease-in②">ease-in</a>, <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-out②">ease-out</a>,
and <a class="css" data-link-type="maybe" href="#valdef-cubic-bezier-easing-function-ease-in-out" id="ref-for-valdef-cubic-bezier-easing-function-ease-in-out②">ease-in-out</a> are serialized as-is, that is, they are <em>not</em> converted to the equivalent <a class="css" data-link-type="maybe" href="#funcdef-cubic-bezier-easing-function-cubic-bezier" id="ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier②">cubic-bezier()</a> function before serializing.</p>
    <li data-md>
     <p>Step easing functions, whether they are specified using the <a class="css" data-link-type="maybe" href="#funcdef-step-easing-function-steps" id="ref-for-funcdef-step-easing-function-steps②">steps()</a> function or either of the <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-start" id="ref-for-valdef-step-easing-function-step-start②">step-start</a> or <a class="css" data-link-type="maybe" href="#valdef-step-easing-function-step-end" id="ref-for-valdef-step-easing-function-step-end②">step-end</a> keywords, are serialized as follows:</p>
     <ol>
      <li data-md>
       <p>If the <a data-link-type="dfn" href="#step-position" id="ref-for-step-position⑦">step position</a> is <a class="css" data-link-type="maybe" href="#valdef-steps-jump-end" id="ref-for-valdef-steps-jump-end⑤">jump-end</a> or <a class="css" data-link-type="maybe" href="#valdef-steps-end" id="ref-for-valdef-steps-end④">end</a>, serialize
 as <a class="css" data-link-type="function" href="#funcdef-step-easing-function-steps" id="ref-for-funcdef-step-easing-function-steps③">steps(&lt;integer>)</a>.</p>
      <li data-md>
       <p>Otherwise, serialize as <a class="css" data-link-type="function" href="#funcdef-step-easing-function-steps" id="ref-for-funcdef-step-easing-function-steps④">steps(&lt;integer>, &lt;step-position>)</a>.</p>
     </ol>
   </ul>
   <h2 class="heading settled" data-level="3" id="priv-sec"><span class="secno">3. </span><span class="content">Privacy and Security Considerations</span><a class="self-link" href="#priv-sec"></a></h2>
   <p>This specification does not directly introduce any new capabilities to the
Web platform but rather provides common definitions that may be referenced by
other specifications.
As a result, it does not introduce any new privacy and security concerns.</p>
   <p>Specifications referencing the features defined in this specification
should consider that while easing functions most commonly
take an <a data-link-type="dfn" href="#input-progress-value" id="ref-for-input-progress-value②③">input progress value</a> in the range [0,1]
and produce an <a data-link-type="dfn" href="#output-progress-value" id="ref-for-output-progress-value①②">output progress value</a> in the range [0, 1],
this is not always the case.
Applications of easing functions should
define the behavior for inputs and outputs outside this range
to ensure they do not introduce new security considerations.</p>
   <h2 class="heading settled" data-level="4" id="changes"><span class="secno">4. </span><span class="content">Changes</span><a class="self-link" href="#changes"></a></h2>
   <p>The following changes have been made since the <a href="https://www.w3.org/TR/2019/CR-css-easing-1-20190430/">30 April 2019 Candidate Recommendation</a>:</p>
   <ul>
    <li data-md>
     <p>Updated <a class="css" data-link-type="maybe" href="#funcdef-cubic-bezier-easing-function-cubic-bezier" id="ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier③">cubic-bezier()</a> syntax definition to annotate range restrictions
using <a data-link-type="dfn" href="https://www.w3.org/TR/css-values-4/#css-bracketed-range-notation" id="ref-for-css-bracketed-range-notation">CSS bracketed range notation</a>. (Editorial)</p>
    <li data-md>
     <p>Added an example of chaining easing functions. (Editorial)</p>
   </ul>
   <h2 class="heading settled" data-level="5" id="acknowledgements"><span class="secno">5. </span><span class="content">Acknowledgements</span><a class="self-link" href="#acknowledgements"></a></h2>
   <p>This specification is based on the <a href="https://www.w3.org/TR/css3-transitions/">CSS Transitions</a> specification
edited by L.  David Baron, Dean Jackson, David Hyatt, and Chris Marrin.
The editors would also like to thank Douglas Stockwell, Steve Block, Tab Atkins,
Rachel Nabors, Martin Pitt, and the <a href="https://damp-lake-50659.herokuapp.com/">Animation at Work</a> slack
community for their feedback and contributions.</p>
  </main>
  <h2 class="no-ref no-num heading settled" id="w3c-conformance"><span class="content"> Conformance</span><a class="self-link" href="#w3c-conformance"></a></h2>
  <h3 class="no-ref heading settled" id="w3c-conventions"><span class="content"> Document conventions</span><a class="self-link" href="#w3c-conventions"></a></h3>
  <p>Conformance requirements are expressed with a combination of
    descriptive assertions and RFC 2119 terminology. The key words “MUST”,
    “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
    “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
    document are to be interpreted as described in RFC 2119.
    However, for readability, these words do not appear in all uppercase
    letters in this specification. </p>
  <p>All of the text of this specification is normative except sections
    explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119" title="Key words for use in RFCs to Indicate Requirement Levels">[RFC2119]</a></p>
  <p>Examples in this specification are introduced with the words “for example”
    or are set apart from the normative text with <code>class="example"</code>,
    like this: </p>
  <div class="example" id="w3c-example">
   <a class="self-link" href="#w3c-example"></a> 
   <p>This is an example of an informative example.</p>
  </div>
  <p>Informative notes begin with the word “Note” and are set apart from the
    normative text with <code>class="note"</code>, like this: </p>
  <p class="note" role="note">Note, this is an informative note.</p>
  <p>Advisements are normative sections styled to evoke special attention and are
    set apart from other normative text with <code>&lt;strong class="advisement"></code>, like
    this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong></p>
  <h3 class="no-ref heading settled" id="w3c-conformance-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#w3c-conformance-classes"></a></h3>
  <p>Conformance to this specification
    is defined for three conformance classes: </p>
  <dl>
   <dt>style sheet 
   <dd>A <a href="https://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS
            style sheet</a>. 
   <dt>renderer 
   <dd>A <a href="https://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
            documents that use them. 
   <dt>authoring tool 
   <dd>A <a href="https://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> that writes a style sheet. 
  </dl>
  <p>A style sheet is conformant to this specification
    if all of its statements that use syntax defined in this module are valid
    according to the generic CSS grammar and the individual grammars of each
    feature defined in this module. </p>
  <p>A renderer is conformant to this specification
    if, in addition to interpreting the style sheet as defined by the
    appropriate specifications, it supports all the features defined
    by this specification by parsing them correctly
    and rendering the document accordingly. However, the inability of a
    UA to correctly render a document due to limitations of the device
    does not make the UA non-conformant. (For example, a UA is not
    required to render color on a monochrome monitor.) </p>
  <p>An authoring tool is conformant to this specification
    if it writes style sheets that are syntactically correct according to the
    generic CSS grammar and the individual grammars of each feature in
    this module, and meet all other conformance requirements of style sheets
    as described in this module. </p>
  <h3 class="no-ref heading settled" id="w3c-partial"><span class="content"> Partial implementations</span><a class="self-link" href="#w3c-partial"></a></h3>
  <p>So that authors can exploit the forward-compatible parsing rules to
    assign fallback values, CSS renderers <strong>must</strong> treat as invalid (and <a href="https://www.w3.org/TR/CSS21/conform.html#ignore">ignore
    as appropriate</a>) any at-rules, properties, property values, keywords,
    and other syntactic constructs for which they have no usable level of
    support. In particular, user agents <strong>must not</strong> selectively
    ignore unsupported component values and honor supported values in a single
    multi-value property declaration: if any value is considered invalid
    (as unsupported values must be), CSS requires that the entire declaration
    be ignored.</p>
  <h4 class="heading settled" id="w3c-conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="#w3c-conform-future-proofing"></a></h4>
  <p>To avoid clashes with future stable CSS features,
        the CSSWG recommends <a href="https://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="https://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="https://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p>
  <h3 class="no-ref heading settled" id="w3c-testing"><span class="content"> Non-experimental implementations</span><a class="self-link" href="#w3c-testing"></a></h3>
  <p>Once a specification reaches the Candidate Recommendation stage,
    non-experimental implementations are possible, and implementors should
    release an unprefixed implementation of any CR-level feature they
    can demonstrate to be correctly implemented according to spec. </p>
  <p>To establish and maintain the interoperability of CSS across
    implementations, the CSS Working Group requests that non-experimental
    CSS renderers submit an implementation report (and, if necessary, the
    testcases used for that implementation report) to the W3C before
    releasing an unprefixed implementation of any CSS features. Testcases
    submitted to W3C are subject to review and correction by the CSS
    Working Group. </p>
  <p>Further information on submitting testcases and implementation reports
    can be found from on the CSS Working Group’s website at <a href="https://www.w3.org/Style/CSS/Test/">https://www.w3.org/Style/CSS/Test/</a>.
    Questions should be directed to the <a href="https://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list.</p>
  <h3 class="no-ref heading settled" id="w3c-cr-exit-criteria"><span class="content"> CR exit criteria</span><a class="self-link" href="#w3c-cr-exit-criteria"></a></h3>
  <p> For this specification to be advanced to Proposed Recommendation,
    there must be at least two independent, interoperable implementations
    of each feature. Each feature may be implemented by a different set of
    products, there is no requirement that all features be implemented by
    a single product. For the purposes of this criterion, we define the
    following terms: </p>
  <dl>
   <dt>independent 
   <dd>each implementation must be developed by a
        different party and cannot share, reuse, or derive from code
        used by another qualifying implementation. Sections of code that
        have no bearing on the implementation of this specification are
        exempt from this requirement. 
   <dt>interoperable 
   <dd>passing the respective test case(s) in the
        official CSS test suite, or, if the implementation is not a Web
        browser, an equivalent test. Every relevant test in the test
        suite should have an equivalent test created if such a user
        agent (UA) is to be used to claim interoperability. In addition
        if such a UA is to be used to claim interoperability, then there
        must one or more additional UAs which can also pass those
        equivalent tests in the same way for the purpose of
        interoperability. The equivalent tests must be made publicly
        available for the purposes of peer review. 
   <dt>implementation 
   <dd>
    a user agent which: 
    <ol class="inline">
     <li>implements the specification. 
     <li>is available to the general public. The implementation may
            be a shipping product or other publicly available version
            (i.e., beta version, preview release, or "nightly build").
            Non-shipping product releases must have implemented the
            feature(s) for a period of at least one month in order to
            demonstrate stability. 
     <li>is not experimental (i.e., a version specifically designed
            to pass the test suite and is not intended for normal usage
            going forward). 
    </ol>
  </dl>
  <p>The specification will remain Candidate Recommendation for at least
    six months.</p>
<script src="https://www.w3.org/scripts/TR/2021/fixup.js"></script>
  <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
  <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
  <ul class="index">
   <li><a href="#before-flag">before flag</a><span>, in § 2.3.1</span>
   <li><a href="#funcdef-cubic-bezier-easing-function-cubic-bezier">cubic-bezier()</a><span>, in § 2.2</span>
   <li><a href="#typedef-cubic-bezier-easing-function">&lt;cubic-bezier-easing-function></a><span>, in § 2.2</span>
   <li><a href="#cubic-bzier-easing-function">cubic Bézier easing function</a><span>, in § 2.2</span>
   <li><a href="#valdef-cubic-bezier-easing-function-ease">ease</a><span>, in § 2.2</span>
   <li><a href="#valdef-cubic-bezier-easing-function-ease-in">ease-in</a><span>, in § 2.2</span>
   <li><a href="#valdef-cubic-bezier-easing-function-ease-in-out">ease-in-out</a><span>, in § 2.2</span>
   <li><a href="#valdef-cubic-bezier-easing-function-ease-out">ease-out</a><span>, in § 2.2</span>
   <li><a href="#typedef-easing-function">&lt;easing-function></a><span>, in § 2</span>
   <li><a href="#easing-function">easing function</a><span>, in § 2</span>
   <li><a href="#valdef-steps-end">end</a><span>, in § 2.3</span>
   <li><a href="#input-progress-value">input progress value</a><span>, in § 2</span>
   <li><a href="#valdef-steps-jump-both">jump-both</a><span>, in § 2.3</span>
   <li><a href="#valdef-steps-jump-end">jump-end</a><span>, in § 2.3</span>
   <li><a href="#valdef-steps-jump-none">jump-none</a><span>, in § 2.3</span>
   <li><a href="#valdef-steps-jump-start">jump-start</a><span>, in § 2.3</span>
   <li><a href="#valdef-easing-function-linear">linear</a><span>, in § 2.1</span>
   <li><a href="#linear-easing-function">linear easing function</a><span>, in § 2.1</span>
   <li><a href="#linear-easing-function">linear timing function</a><span>, in § 2.1</span>
   <li><a href="#output-progress-value">output progress value</a><span>, in § 2</span>
   <li><a href="#valdef-steps-start">start</a><span>, in § 2.3</span>
   <li><a href="#typedef-step-easing-function">&lt;step-easing-function></a><span>, in § 2.3</span>
   <li><a href="#step-easing-function">step easing function</a><span>, in § 2.3</span>
   <li><a href="#valdef-step-easing-function-step-end">step-end</a><span>, in § 2.3</span>
   <li><a href="#typedef-step-position">&lt;step-position></a><span>, in § 2.3</span>
   <li><a href="#step-position">step position</a><span>, in § 2.3</span>
   <li><a href="#steps">steps</a><span>, in § 2.3</span>
   <li><a href="#funcdef-step-easing-function-steps">steps()</a><span>, in § 2.3</span>
   <li><a href="#valdef-step-easing-function-step-start">step-start</a><span>, in § 2.3</span>
   <li><a href="#easing-function">timing function</a><span>, in § 2</span>
  </ul>
  <aside class="dfn-panel" data-for="term-for-comb-comma">
   <a href="https://www.w3.org/TR/css-values-4/#comb-comma">https://www.w3.org/TR/css-values-4/#comb-comma</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-comma">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-comb-comma①">(2)</a> <a href="#ref-for-comb-comma②">(3)</a>
    <li><a href="#ref-for-comb-comma③">2.3. Step easing functions:
step-start, step-end, steps()</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-integer-value">
   <a href="https://www.w3.org/TR/css-values-4/#integer-value">https://www.w3.org/TR/css-values-4/#integer-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-integer-value">2.3. Step easing functions:
step-start, step-end, steps()</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-number-value">
   <a href="https://www.w3.org/TR/css-values-4/#number-value">https://www.w3.org/TR/css-values-4/#number-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-number-value">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-number-value①">(2)</a> <a href="#ref-for-number-value②">(3)</a> <a href="#ref-for-number-value③">(4)</a> <a href="#ref-for-number-value④">(5)</a> <a href="#ref-for-number-value⑤">(6)</a> <a href="#ref-for-number-value⑥">(7)</a> <a href="#ref-for-number-value⑦">(8)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-opt">
   <a href="https://www.w3.org/TR/css-values-4/#mult-opt">https://www.w3.org/TR/css-values-4/#mult-opt</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-opt">2.3. Step easing functions:
step-start, step-end, steps()</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-bracketed-range-notation">
   <a href="https://www.w3.org/TR/css-values-4/#css-bracketed-range-notation">https://www.w3.org/TR/css-values-4/#css-bracketed-range-notation</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-bracketed-range-notation">4. Changes</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-one">
   <a href="https://www.w3.org/TR/css-values-4/#comb-one">https://www.w3.org/TR/css-values-4/#comb-one</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-one">2. Easing functions</a> <a href="#ref-for-comb-one①">(2)</a>
    <li><a href="#ref-for-comb-one②">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-comb-one③">(2)</a> <a href="#ref-for-comb-one④">(3)</a> <a href="#ref-for-comb-one⑤">(4)</a>
    <li><a href="#ref-for-comb-one⑥">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-comb-one⑦">(2)</a> <a href="#ref-for-comb-one⑧">(3)</a> <a href="#ref-for-comb-one⑨">(4)</a> <a href="#ref-for-comb-one①⓪">(5)</a> <a href="#ref-for-comb-one①①">(6)</a> <a href="#ref-for-comb-one①②">(7)</a>
   </ul>
  </aside>
  <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
  <ul class="index">
   <li>
    <a data-link-type="biblio">[CSS-VALUES-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-comb-comma">,</span>
     <li><span class="dfn-paneled" id="term-for-integer-value">&lt;integer></span>
     <li><span class="dfn-paneled" id="term-for-number-value">&lt;number></span>
     <li><span class="dfn-paneled" id="term-for-mult-opt">?</span>
     <li><span class="dfn-paneled" id="term-for-css-bracketed-range-notation">css bracketed range notation</span>
     <li><span class="dfn-paneled" id="term-for-comb-one">|</span>
    </ul>
  </ul>
  <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
  <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
  <dl>
   <dt id="biblio-css-values-3">[CSS-VALUES-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-3/"><cite>CSS Values and Units Module Level 3</cite></a>. 1 December 2022. CR. URL: <a href="https://www.w3.org/TR/css-values-3/">https://www.w3.org/TR/css-values-3/</a>
   <dt id="biblio-css-values-4">[CSS-VALUES-4]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-4/"><cite>CSS Values and Units Module Level 4</cite></a>. 19 October 2022. WD. URL: <a href="https://www.w3.org/TR/css-values-4/">https://www.w3.org/TR/css-values-4/</a>
   <dt id="biblio-rfc2119">[RFC2119]
   <dd>S. Bradner. <a href="https://datatracker.ietf.org/doc/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. March 1997. Best Current Practice. URL: <a href="https://datatracker.ietf.org/doc/html/rfc2119">https://datatracker.ietf.org/doc/html/rfc2119</a>
  </dl>
  <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
  <dl>
   <dt id="biblio-cssom">[CSSOM]
   <dd>Daniel Glazman; Emilio Cobos Álvarez. <a href="https://www.w3.org/TR/cssom-1/"><cite>CSS Object Model (CSSOM)</cite></a>. 26 August 2021. WD. URL: <a href="https://www.w3.org/TR/cssom-1/">https://www.w3.org/TR/cssom-1/</a>
   <dt id="biblio-fund-comp-graphics">[FUND-COMP-GRAPHICS]
   <dd>Peter Shirley; Michael Ashikhmin; Steve Marschner. <cite>Fundamentals of Computer Graphics</cite>. 2009. 
   <dt id="biblio-web-animations">[WEB-ANIMATIONS]
   <dd>Brian Birtles; et al. <a href="https://www.w3.org/TR/web-animations-1/"><cite>Web Animations</cite></a>. 8 September 2022. WD. URL: <a href="https://www.w3.org/TR/web-animations-1/">https://www.w3.org/TR/web-animations-1/</a>
  </dl>
  <aside class="dfn-panel" data-for="easing-function">
   <b><a href="#easing-function">#easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-easing-function">1. Introduction</a>
    <li><a href="#ref-for-easing-function①">2. Easing functions</a> <a href="#ref-for-easing-function②">(2)</a> <a href="#ref-for-easing-function③">(3)</a>
    <li><a href="#ref-for-easing-function④">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a>
    <li><a href="#ref-for-easing-function⑤">2.3. Step easing functions:
step-start, step-end, steps()</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="input-progress-value">
   <b><a href="#input-progress-value">#input-progress-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-input-progress-value">2. Easing functions</a> <a href="#ref-for-input-progress-value①">(2)</a>
    <li><a href="#ref-for-input-progress-value②">2.1. The linear easing function: linear</a>
    <li><a href="#ref-for-input-progress-value③">2.2.1. Output of a cubic bézier easing function</a> <a href="#ref-for-input-progress-value④">(2)</a> <a href="#ref-for-input-progress-value⑤">(3)</a> <a href="#ref-for-input-progress-value⑥">(4)</a> <a href="#ref-for-input-progress-value⑦">(5)</a> <a href="#ref-for-input-progress-value⑧">(6)</a>
    <li><a href="#ref-for-input-progress-value⑨">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-input-progress-value①⓪">(2)</a> <a href="#ref-for-input-progress-value①①">(3)</a> <a href="#ref-for-input-progress-value①②">(4)</a>
    <li><a href="#ref-for-input-progress-value①③">2.3.1. Output of
a step easing function</a> <a href="#ref-for-input-progress-value①④">(2)</a> <a href="#ref-for-input-progress-value①⑤">(3)</a> <a href="#ref-for-input-progress-value①⑥">(4)</a> <a href="#ref-for-input-progress-value①⑦">(5)</a> <a href="#ref-for-input-progress-value①⑧">(6)</a> <a href="#ref-for-input-progress-value①⑨">(7)</a> <a href="#ref-for-input-progress-value②⓪">(8)</a> <a href="#ref-for-input-progress-value②①">(9)</a> <a href="#ref-for-input-progress-value②②">(10)</a>
    <li><a href="#ref-for-input-progress-value②③">3. Privacy and Security Considerations</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="output-progress-value">
   <b><a href="#output-progress-value">#output-progress-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-output-progress-value">2. Easing functions</a> <a href="#ref-for-output-progress-value①">(2)</a>
    <li><a href="#ref-for-output-progress-value②">2.1. The linear easing function: linear</a>
    <li><a href="#ref-for-output-progress-value③">2.2.1. Output of a cubic bézier easing function</a> <a href="#ref-for-output-progress-value④">(2)</a> <a href="#ref-for-output-progress-value⑤">(3)</a>
    <li><a href="#ref-for-output-progress-value⑥">2.3.1. Output of
a step easing function</a> <a href="#ref-for-output-progress-value⑦">(2)</a> <a href="#ref-for-output-progress-value⑧">(3)</a> <a href="#ref-for-output-progress-value⑨">(4)</a> <a href="#ref-for-output-progress-value①⓪">(5)</a> <a href="#ref-for-output-progress-value①①">(6)</a>
    <li><a href="#ref-for-output-progress-value①②">3. Privacy and Security Considerations</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="linear-easing-function">
   <b><a href="#linear-easing-function">#linear-easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-linear-easing-function">2.1. The linear easing function: linear</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-easing-function-linear">
   <b><a href="#valdef-easing-function-linear">#valdef-easing-function-linear</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-easing-function-linear">2. Easing functions</a>
    <li><a href="#ref-for-valdef-easing-function-linear①">2.1. The linear easing function: linear</a>
    <li><a href="#ref-for-valdef-easing-function-linear②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="cubic-bzier-easing-function">
   <b><a href="#cubic-bzier-easing-function">#cubic-bzier-easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cubic-bzier-easing-function">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-cubic-bzier-easing-function①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-cubic-bezier-easing-function">
   <b><a href="#typedef-cubic-bezier-easing-function">#typedef-cubic-bezier-easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-cubic-bezier-easing-function">2. Easing functions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-cubic-bezier-easing-function-ease">
   <b><a href="#valdef-cubic-bezier-easing-function-ease">#valdef-cubic-bezier-easing-function-ease</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-valdef-cubic-bezier-easing-function-ease①">(2)</a>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-cubic-bezier-easing-function-ease-in">
   <b><a href="#valdef-cubic-bezier-easing-function-ease-in">#valdef-cubic-bezier-easing-function-ease-in</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in①">(2)</a>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-cubic-bezier-easing-function-ease-out">
   <b><a href="#valdef-cubic-bezier-easing-function-ease-out">#valdef-cubic-bezier-easing-function-ease-out</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-out">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-valdef-cubic-bezier-easing-function-ease-out①">(2)</a>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-out②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-cubic-bezier-easing-function-ease-in-out">
   <b><a href="#valdef-cubic-bezier-easing-function-ease-in-out">#valdef-cubic-bezier-easing-function-ease-in-out</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in-out">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in-out①">(2)</a>
    <li><a href="#ref-for-valdef-cubic-bezier-easing-function-ease-in-out②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="funcdef-cubic-bezier-easing-function-cubic-bezier">
   <b><a href="#funcdef-cubic-bezier-easing-function-cubic-bezier">#funcdef-cubic-bezier-easing-function-cubic-bezier</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier">2.2. Cubic
Bézier easing functions:
ease, ease-in, ease-out, ease-in-out, cubic-bezier()</a> <a href="#ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier①">(2)</a>
    <li><a href="#ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier②">2.4. Serialization</a>
    <li><a href="#ref-for-funcdef-cubic-bezier-easing-function-cubic-bezier③">4. Changes</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="step-easing-function">
   <b><a href="#step-easing-function">#step-easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-step-easing-function">2.3.1. Output of
a step easing function</a> <a href="#ref-for-step-easing-function①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="steps">
   <b><a href="#steps">#steps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-steps">2.3.1. Output of
a step easing function</a> <a href="#ref-for-steps①">(2)</a> <a href="#ref-for-steps②">(3)</a> <a href="#ref-for-steps③">(4)</a> <a href="#ref-for-steps④">(5)</a> <a href="#ref-for-steps⑤">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="step-position">
   <b><a href="#step-position">#step-position</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-step-position">2.3. Step easing functions:
step-start, step-end, steps()</a>
    <li><a href="#ref-for-step-position①">2.3.1. Output of
a step easing function</a> <a href="#ref-for-step-position②">(2)</a> <a href="#ref-for-step-position③">(3)</a> <a href="#ref-for-step-position④">(4)</a> <a href="#ref-for-step-position⑤">(5)</a> <a href="#ref-for-step-position⑥">(6)</a>
    <li><a href="#ref-for-step-position⑦">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-step-easing-function">
   <b><a href="#typedef-step-easing-function">#typedef-step-easing-function</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-step-easing-function">2. Easing functions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-step-position">
   <b><a href="#typedef-step-position">#typedef-step-position</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-step-position">2.3. Step easing functions:
step-start, step-end, steps()</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-step-easing-function-step-start">
   <b><a href="#valdef-step-easing-function-step-start">#valdef-step-easing-function-step-start</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-step-easing-function-step-start">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-step-easing-function-step-start①">(2)</a>
    <li><a href="#ref-for-valdef-step-easing-function-step-start②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-step-easing-function-step-end">
   <b><a href="#valdef-step-easing-function-step-end">#valdef-step-easing-function-step-end</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-step-easing-function-step-end">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-step-easing-function-step-end①">(2)</a>
    <li><a href="#ref-for-valdef-step-easing-function-step-end②">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="funcdef-step-easing-function-steps">
   <b><a href="#funcdef-step-easing-function-steps">#funcdef-step-easing-function-steps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-funcdef-step-easing-function-steps">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-funcdef-step-easing-function-steps①">(2)</a>
    <li><a href="#ref-for-funcdef-step-easing-function-steps②">2.4. Serialization</a> <a href="#ref-for-funcdef-step-easing-function-steps③">(2)</a> <a href="#ref-for-funcdef-step-easing-function-steps④">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-jump-start">
   <b><a href="#valdef-steps-jump-start">#valdef-steps-jump-start</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-jump-start">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-steps-jump-start①">(2)</a>
    <li><a href="#ref-for-valdef-steps-jump-start②">2.3.1. Output of
a step easing function</a> <a href="#ref-for-valdef-steps-jump-start③">(2)</a> <a href="#ref-for-valdef-steps-jump-start④">(3)</a> <a href="#ref-for-valdef-steps-jump-start⑤">(4)</a> <a href="#ref-for-valdef-steps-jump-start⑥">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-jump-end">
   <b><a href="#valdef-steps-jump-end">#valdef-steps-jump-end</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-jump-end">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-steps-jump-end①">(2)</a>
    <li><a href="#ref-for-valdef-steps-jump-end②">2.3.1. Output of
a step easing function</a> <a href="#ref-for-valdef-steps-jump-end③">(2)</a> <a href="#ref-for-valdef-steps-jump-end④">(3)</a>
    <li><a href="#ref-for-valdef-steps-jump-end⑤">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-jump-none">
   <b><a href="#valdef-steps-jump-none">#valdef-steps-jump-none</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-jump-none">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-steps-jump-none①">(2)</a>
    <li><a href="#ref-for-valdef-steps-jump-none②">2.3.1. Output of
a step easing function</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-jump-both">
   <b><a href="#valdef-steps-jump-both">#valdef-steps-jump-both</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-jump-both">2.3. Step easing functions:
step-start, step-end, steps()</a>
    <li><a href="#ref-for-valdef-steps-jump-both①">2.3.1. Output of
a step easing function</a> <a href="#ref-for-valdef-steps-jump-both②">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-start">
   <b><a href="#valdef-steps-start">#valdef-steps-start</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-start">2.3. Step easing functions:
step-start, step-end, steps()</a>
    <li><a href="#ref-for-valdef-steps-start①">2.3.1. Output of
a step easing function</a> <a href="#ref-for-valdef-steps-start②">(2)</a> <a href="#ref-for-valdef-steps-start③">(3)</a> <a href="#ref-for-valdef-steps-start④">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-steps-end">
   <b><a href="#valdef-steps-end">#valdef-steps-end</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-steps-end">2.3. Step easing functions:
step-start, step-end, steps()</a> <a href="#ref-for-valdef-steps-end①">(2)</a>
    <li><a href="#ref-for-valdef-steps-end②">2.3.1. Output of
a step easing function</a> <a href="#ref-for-valdef-steps-end③">(2)</a>
    <li><a href="#ref-for-valdef-steps-end④">2.4. Serialization</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="before-flag">
   <b><a href="#before-flag">#before-flag</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-before-flag">2. Easing functions</a>
    <li><a href="#ref-for-before-flag①">2.3.1. Output of
a step easing function</a> <a href="#ref-for-before-flag②">(2)</a> <a href="#ref-for-before-flag③">(3)</a> <a href="#ref-for-before-flag④">(4)</a> <a href="#ref-for-before-flag⑤">(5)</a>
   </ul>
  </aside>
<script>/* script-dfn-panel */

document.body.addEventListener("click", function(e) {
    var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); }
    // Find the dfn element or panel, if any, that was clicked on.
    var el = e.target;
    var target;
    var hitALink = false;
    while(el.parentElement) {
        if(el.tagName == "A") {
            // Clicking on a link in a <dfn> shouldn't summon the panel
            hitALink = true;
        }
        if(el.classList.contains("dfn-paneled")) {
            target = "dfn";
            break;
        }
        if(el.classList.contains("dfn-panel")) {
            target = "dfn-panel";
            break;
        }
        el = el.parentElement;
    }
    if(target != "dfn-panel") {
        // Turn off any currently "on" or "activated" panels.
        queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){
            el.classList.remove("on");
            el.classList.remove("activated");
        });
    }
    if(target == "dfn" && !hitALink) {
        // open the panel
        var dfnPanel = document.querySelector(".dfn-panel[data-for='" + el.id + "']");
        if(dfnPanel) {
            dfnPanel.classList.add("on");
            var rect = el.getBoundingClientRect();
            dfnPanel.style.left = window.scrollX + rect.right + 5 + "px";
            dfnPanel.style.top = window.scrollY + rect.top + "px";
            var panelRect = dfnPanel.getBoundingClientRect();
            var panelWidth = panelRect.right - panelRect.left;
            if(panelRect.right > document.body.scrollWidth && (rect.left - (panelWidth + 5)) > 0) {
                // Reposition, because the panel is overflowing
                dfnPanel.style.left = window.scrollX + rect.left - (panelWidth + 5) + "px";
            }
        } else {
            console.log("Couldn't find .dfn-panel[data-for='" + el.id + "']");
        }
    } else if(target == "dfn-panel") {
        // Switch it to "activated" state, which pins it.
        el.classList.add("activated");
        el.style.left = null;
        el.style.top = null;
    }

});
</script>