Specification link: 19.2 Animation elements

animate-elem-46-t ← index → animate-elem-53-t

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

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

## Operator Script

Run the test. Click on each of the four blue rectangles from left to right.

## Pass Criteria

The test passes if all of the following conditions are met:

- the A rectangle turns yellow immediately when clicked
- the B rectangle turns yellow two seconds after being clicked
- the C rectangle turns yellow four seconds after being clicked
- at the time the C rectangle turns yellow, the D rectangle is still blue

## Test Description

The purpose of this test is to test eventbase targets.

The test consists of 4 rectangles named A, B, C, D. The D rectangle contains three animations changing the color of the animation target. Each animation applies to one of the other rectangles by using xlink:href. Clicking on rect A should change it's color immediately, clicking B changes its color after 2 seconds, clicking C changes its color after 4 seconds and clicking D shows no visible change (although D contains the animations the event target for each animation is the referenced rectangle, this rectangle is also the animation target.)

The following sections in the SMIL Animation spec (http://www.w3.org/TR/smil-animation/) are relevant as confirmation of this test: The SMIL spec(3.6.7 subsection "Event Values") states that "If the Eventbase-element term is missing, the event-base element is defined to be the target element of the animation" The SMIL spec (3.1 subsection "The target element") says that the animation target may be defined explicitly thru the targetElement IDREF or href URI. So in this test, the animation target is defined through xlink:href and the event base per definition is then also this referenced element.

animate-elem-46-t ← index → animate-elem-53-t