Hold attribute constant if values has one element

When an animation element's values attribute contains only a single
entry, we use this value for the duration of the animation. (Web
Animations considers a single keyframe to be the keyframe for
offset 1 only, so we instead pass two keyframes to Web Animations.