Specification link: 19.2 Animation elements

animate-elem-69-t ← index → animate-elem-77-t

Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

# animate-elem-70-t.svg
SVG Image | PNG Image

## Operator Script

Run the test and observe it for at least 5 seconds. No interaction required.

## Pass Criteria

The test passes if for the duration of the test the following conditions are met:

- The red squares in the top two rows alternate between the left and the right column at a rate of one movement per second. They must also be in the same column at any given time.
- The red squares in the bottom two rows stay in the right column.

## Test Description

This tests the animation's SMIL fill attribute.

On the first row, the <set> animation has its dur attribute set to '1s' and its begin attribute set to '0s; firstSet.end + 1s'. The fill attribute is unspecified, so the effect is as if it was set to 'remove', because 'remove' is the default value for fill. Consequently, the first interval is (0s <= t < 1s), the second is (2s <= t < 3s), the third, (4s <= t < 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 with the identifier 'firstSet' 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 <= t < 1s), the second (2s <= t < 3s), the third, (4s <= t < 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 <= t < 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.

animate-elem-69-t ← index → animate-elem-77-t