fix(animations): throw errors and normalize offset beyond the range of [0,1]
Closes #13348 Closes #13440
This commit is contained in:

committed by
Victor Berchet

parent
8395f0e138
commit
b56474d067
@ -28,7 +28,7 @@ export class WebAnimationsDriver implements AnimationDriver {
|
||||
|
||||
keyframes.forEach((keyframe: AnimationKeyframe) => {
|
||||
const data = _populateStyles(keyframe.styles, startingStyleLookup);
|
||||
data['offset'] = keyframe.offset;
|
||||
data['offset'] = Math.max(0, Math.min(1, keyframe.offset));
|
||||
formattedSteps.push(data);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user