animate-elem-65-t

raster image of animate-elem-65-t

This tests performs basic tests on the min attribute. The test is based on the SMIL specification at: http://www.w3.org/TR/smil20/smil-timing.html#Timing-MinMax.

Each row in the test shows different rectangles subject to <set> animations with different configurations with regards to the min attribute. For each row but the last one, 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 a (0s <= t < 5s) active duration and no min attribute so the actual active duration is (0s <= t < 5s). The first row shows a second rectangle with a <set> animation with the same configuration except that the min attribute value is set to 'media'. Because the <set> element does not define a media, the behavior should be as if the attribute was not specified.

On the second row, the <set> animation has a (0s <= t < 5s) active duration and a min attribute set to '-6s'. That value is invalid for min and, as per the specification, the behavior should be as if the attribute was not specified. Consequently, the behavior is as for the previous row and the actual active duration is (0s <= t < 5s).

On the third row, the <set> animation has a (0s <= t < 5s) active duration and a min attribute set to '3s'. The min value is less than the active duration, so the min attribute does not actually constrain the active duration.

On the fourth row, the <set> animation has a (0s <= t < 2s) initial active duration, an indefinite simple duration (dur is set to indefinite) and a min attribute set to '3s'. Because the initial active duration is less than the min attribute and because the simple duration is greater than the min value, the animation is active for the (min constrained) active duration, i.e., (0s <= t < 5s).

On the fifth row, the <set> animation has a (0s <= t < 2s) initial active duration, an (0s <= t < 7s) repeat duration and a 5s min attribute value. Because the initial active duration is less than the min attribute and because the repeat duration is greater than the min value, the animation active for the (min constrained) active duration, i.e., (0s <= t < 5s).

On the sixth row, the <set> animation has a (0s <= t < 2s) initial active duration, an (0s <= t < 5s) repeat duration and an 8s min attribute value. Because the initial active duration is less than the min attribute and because the repeat duration is less than the min value (5s < 8s) and because the fill attribute is set to 'remove' on the <set> animation, the animation's active duration is (0s <= t < 5s).

On the seventh row, the <set> animation has a (0s <= t < 2s) initial active duration, a (0s <= t < 5s) repeat duration and an 8s min attribute value. Because the initial active duration is less than the min attribute and because the repeat duration is less than the min value (5s < 8s) and because the fill attribute is set to 'freeze' on the <set> animation, the animation's active duration is (0s <= t < 5s) but, because the fill state is 'freeze', the <set> applies indefinitely.