You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a value type does not define a specific procedure for addition or is defined as not additive, its addition operation is simply Vresult = Va.
Because addition is not commutative, and I expect Va is the underlying value, and Vb is the value to combine (i.e. the keyframe effect value), per the-effect-value-of-a-keyframe-animation-effect.
Get the composited value for "from": 100px + 100px = 200px.
Get the composited value for "to": 100px + auto = 100px, because discrete is not additive and Vresult = Va.
Therefore, this becomes an interpolation from 200px to 100px. However, this mismatches the wpt and the current behavior of all the browsers. The interpolation is something like from 200px to auto:
We use discrete for <line-names>, and we use the keyframe value (i.e. Vb) as the composited <line-names> values in this test case.
I guess I may miss something. However, per these examples and current behaviors of all browsers, should we change the spec words for non-additive in [css-values-4] to use Vresult = Vb or effect value? Or perhaps we have similar definition in [web-animations]?
Per the definition of discrete animation, it is not additive. The spec says:
Because addition is not commutative, and I expect
Va
is the underlying value, andVb
is the value to combine (i.e. the keyframe effect value), per the-effect-value-of-a-keyframe-animation-effect.So for example:
The expected behavior per the spec is:
100px + 100px
=200px
.100px + auto
=100px
, because discrete is not additive andVresult = Va
.Therefore, this becomes an interpolation from
200px
to100px
. However, this mismatches the wpt and the current behavior of all the browsers. The interpolation is something like from200px
toauto
:And there are other examples:
We use discrete for
<line-names>
, and we use the keyframe value (i.e.Vb
) as the composited<line-names>
values in this test case.I guess I may miss something. However, per these examples and current behaviors of all browsers, should we change the spec words for non-additive in [css-values-4] to use
Vresult = Vb
or effect value? Or perhaps we have similar definition in [web-animations]?cc @birtles
The text was updated successfully, but these errors were encountered: