Specification link: 19.2 Animation elements

animate-elem-20-t ← index → animate-elem-22-b

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

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

## Operator Script

Click "fade in", wait 3 seconds. Click "fade out", wait 3 seconds. Click "fade in" again, wait 6 seconds.

## Pass Criteria

The test is passed if:

- The first time "fade in" is clicked, a blue rectangle should smoothly fade from white to blue, and two circles should fade from white to gray, all over the course of three seconds
- When "fade out" is clicked, the blue rectangle should smoothly fade from blue to white, and the two circles should fade from gray to white, all over the course of three seconds.
- When "fade in" is clicked the second time, it should behave as the first time "fade in" was clicked but immediately followed by the "fade out" behaviour described above, so that the shapes all fade in over the course of three seconds, and then out again over the course of three seconds.
- The rendered picture matches the reference image, (except for possible variations in the labeling text (per CSS2 rules)) after activating the link on the fade-in button the first time and waiting three seconds for the animation to compete. The picture should remain looking the same way indefinitely, until another link is activated.

## Test Description

Test for chained animations.

The assumption is that you will first click on "fade in" and then click on "fade out", each exactly once. The first time you select the link 'fade in', you should see a blue square appearing, gradually and smoothly fading from white to blue over the course of three seconds. This square is in front of and thus obscures the lower left circle, but is behind the upper right circle. The fill color of these circles is also animated, from white to grey. The animations are triggered by the start of the corresponding animation of the blue square.

With the second click on "fade in", however, the behavior might be different. In the case of having a first click on "fade in", waiting three seconds, and then immediately perform a first click on "fade out", waiting three seconds, and then immediately perform a second click on "fade in", you should see the following. After the first click on "fade in", the blue square goes from white to blue. After the first click on "fade out", the blue square goes from blue to white. After the second click on "fade in", however, the blue square goes from white to blue, and then goes back from blue to white. This is because of the hyperlinking rules as they relate to resolved start times in the SMIL Animation specification.

animate-elem-20-t ← index → animate-elem-22-b