animate-elem-70-t

raster image of animate-elem-70-t

This tests performs basic tests on the animation's fill attribute

Each row in the test shows different rectangles subject to <set> animations with different configurations with regards to the fill attribute. For each row, the animation should be active during the first 5 seconds of the animations where the red rectangle should show in the right column. At five seconds into the animation, all the rectangles should move to their left position.

On the first row, the <set> animation has its dur attribute set to '1s' and its being attribute set to '0s; firstSet.end + 1s'. The fill attribute is unspecified, so the the effect is as if it was set to 'remove', because 'remove' is the default value for fill. Consequently, the first interval is [0s, 1s[, the second is [2s, 3s[, the third, [4s, 5s[ etc.. The red rectangle starts on the right position, moves to the left position for one second, moves to the right for 1 second, and so on.

On the second row, the <set> animation has its dur attribute set to 1s and its begin attribute set to '0s; firstSet.end'. The fill attribute is set to 'remove'. The behavior should be exactly the same as for the previous row, and the rectangle moves from the right position to the left position every second.

On the third row, the <set> animation has its dur attribute set to 1s and its begin attribute set to '0s; firstSet.end'. The fill attribute is set to 'freeze'. The first interval should be [0s, 1s[, the second [2s, 3s[, the third [4s, 5s[, etc. Between interval, the fill behavior should be applied, so the red rectangle should stay on the right position and never go to the left position.

On the fourth row, the <set> animation has its dur attribute set to 1s and its begin attribute set to '0s'. The fill attribute is set to 'freeze'. The first interval should be [0s, 1s[ and there is no following interval. Because of the fill behavior, the <set> should apply the last (and only) animation value after 1s. Consequently, the red rectangle should stay on the right position and never go to the left position.