@@ -3185,7 +3185,7 @@ in each property's property definition table:
3185
3185
<dt> <dfn>by computed value</dfn>
3186
3186
<dd>
3187
3187
Corresponding individual components of the <a>computed values</a>
3188
- are combined (interpolated, added, or accumulated )
3188
+ are combined (interpolated, added, accumulated, or subtracted )
3189
3189
using the indicated procedure for that value type
3190
3190
(see [[css-values-4#combining-values]] ).
3191
3191
If the number of components or the types of corresponding components
@@ -3544,7 +3544,11 @@ given <var>iteration progress</var>, <var ignore=''>current iteration</var> and
3544
3544
<a>keyframe effect</a> .
3545
3545
1. Let <var> value to combine</var> be the property value of
3546
3546
<var> target property</var> specified on
3547
- <var> keyframe</var> .
3547
+ <var> keyframe</var> , unless the <var> composite operation to use</var>
3548
+ is <a lt="composite operation relative">relative</a> in
3549
+ which it is the same property value <a
3550
+ lt="value subtraction"> subtracted</a>
3551
+ from the last <a>keyframe</a> in the <a>keyframe effect</a> .
3548
3552
1. Replace the property value of <var> target property</var>
3549
3553
on <var> keyframe</var> with the result of combining
3550
3554
<var> underlying value</var> (<var> V</var><sub> a</sub> ) and
@@ -3792,7 +3796,7 @@ The specific operation used to combine an <a>effect value</a> with an
3792
3796
<dfn>composite operation</dfn> of the <a>keyframe effect</a> that
3793
3797
produced the <a>effect value</a> .
3794
3798
3795
- This specification defines three <a>composite operations</a> as
3799
+ This specification defines four <a>composite operations</a> as
3796
3800
follows:
3797
3801
3798
3802
: <dfn lt="composite operation replace">replace</dfn>
@@ -3814,6 +3818,8 @@ follows:
3814
3818
<a lt="value accumulation">accumulation operation</a> is
3815
3819
defined such that it is not commutative, the order of the operands
3816
3820
is <a>underlying value</a> followed by <a>effect value</a> .
3821
+ : <dfn lt="composite operation relative">relative</dfn> </dt>
3822
+ :: The <a>effect value</a> is composited identically to <a>accumulate</a> .
3817
3823
3818
3824
### Applying the composited result ### {#applying-the-composited-result}
3819
3825
@@ -5804,7 +5810,7 @@ composition behavior are represented by the
5804
5810
<dfn>CompositeOperation</dfn> enumeration.
5805
5811
5806
5812
<pre class='idl'>
5807
- enum CompositeOperation { "replace", "add", "accumulate" };
5813
+ enum CompositeOperation { "replace", "add", "accumulate", "relative" };
5808
5814
</pre>
5809
5815
5810
5816
: <dfn enum-value for="CompositeOperation,CompositeOperationOrAuto">replace</dfn>
@@ -5830,12 +5836,21 @@ enum CompositeOperation { "replace", "add", "accumulate" };
5830
5836
lt="value accumulation"> accumulated</a> on to the
5831
5837
<a>underlying value</a> .
5832
5838
5839
+ : <dfn enum-value for="CompositeOperation,CompositeOperationOrAuto">relative</dfn>
5840
+ :: Corresponds to the <a
5841
+ lt="composite operation relative"> relative</a>
5842
+ <a>composite operation</a> value such that
5843
+ the <a>effect value</a> is calculated as described
5844
+ in [[#the-effect-value-of-a-keyframe-animation-effect]]
5845
+ and <a lt="value accumulation">accumulated</a> on to the
5846
+ <a>underlying value</a> .
5847
+
5833
5848
The possible values of a [=keyframe=] 's composition behavior share the same
5834
5849
values as the {{CompositeOperation}} enumeration along with the additional
5835
5850
{{CompositeOperationOrAuto/auto}} value.
5836
5851
5837
5852
<pre class='idl'>
5838
- enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
5853
+ enum CompositeOperationOrAuto { "replace", "add", "accumulate", "relative", " auto" };
5839
5854
</pre>
5840
5855
5841
5856
: <dfn enum-value for=CompositeOperationOrAuto>auto</dfn>
0 commit comments