diff --git a/web-animations-1/Overview.bs b/web-animations-1/Overview.bs index 66b0354819c..1806a7362bc 100644 --- a/web-animations-1/Overview.bs +++ b/web-animations-1/Overview.bs @@ -3297,13 +3297,50 @@ If the keyframe-specific composite operation for a keyframe is not set, the composite operation specified for the keyframe effect as a whole is used for values specified in that keyframe. +### Computing property values ### {#computing-property-values} + +
+var animation = elem.animate([{ fontSize: '10px', width: '10em' }, + { fontSize: '20px', width: '20em' }], 1000); +animation.currentTime = 500; +console.log(getComputedStyle(elem).fontSize); // Should be 15px +console.log(getComputedStyle(elem).width); // Should be 225px ++In this example, in order to compute a property value for +
10em
, we must know the computed value of
+'font-size' on the target element, which in turn is determined
+by the effect value for 'font-size', which in turn requires that we
+compute property values for 'font-size'.
+Hence, computing property values are subject to ordering constraints.
+10px
to 20px
, a property value specified as
+ 1em
in a keyframe would during
+ keyframe computation
+ resolve against the computed value in the range
+ [10px
, 20px
] produced by the transition on
+ 'font-size'.
+