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
The AnimationTrigger interface is specified in the web-animations-2 spec. JavaScript can get and set the trigger property of an animation. This means that multiple animations can be associated with the same trigger. Should AnimationTrigger properties then be readonly?
If they are not readonly, then we need to specify how setting the properties of an AnimationTrigger works when multiple animations are associated with that trigger.
should the change affect all the animations associated with this trigger or none (do a copy-on-write for all animations associated with this trigger), orphaning the trigger?
If an author writes animation.trigger.type = new_type, should this affect all the other animations associated with this trigger or just the one referenced in the expression (do a copy-on-write for all other animations associated with this trigger)?
(By copy-on-write, I mean make a copy (or copies) of the old trigger and associate it (or them) with the other animations, leaving them unaffected.)
I propose we make AnimationTrigger’s properties readonly. We can relax this constraint and answer the above questions in the future if the need arises.
The text was updated successfully, but these errors were encountered:
I propose we make AnimationTrigger’s properties readonly. We can relax this constraint and answer the above questions in the future if the need arises.
If this won't be blocked later by compat concerns and it will simplify implementation then I'm fine with the proposal + deferring.
The AnimationTrigger interface is specified in the web-animations-2 spec. JavaScript can get and set the
trigger
property of an animation. This means that multiple animations can be associated with the same trigger. Should AnimationTrigger properties then be readonly?If they are not readonly, then we need to specify how setting the properties of an AnimationTrigger works when multiple animations are associated with that trigger.
Specifically:
should the change affect all the animations associated with this trigger or none (do a copy-on-write for all animations associated with this trigger), orphaning the trigger?
animation.trigger.type = new_type
, should this affect all the other animations associated with this trigger or just the one referenced in the expression (do a copy-on-write for all other animations associated with this trigger)?(By copy-on-write, I mean make a copy (or copies) of the old trigger and associate it (or them) with the other animations, leaving them unaffected.)
I propose we make AnimationTrigger’s properties readonly. We can relax this constraint and answer the above questions in the future if the need arises.
The text was updated successfully, but these errors were encountered: