Specification link: 19.2 Animation elements

animate-elem-82-t ← index → animate-elem-84-t

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

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

## Operator Script

Run the test. No interaction required.

## Pass Criteria

The test consists of six sub-tests. In each sub-test, the light gray filled path must continously morph its shape, starting one second after the document load and continuing for three seconds. In all sub-tests except for #3, there are two orange reference shape outlines between which the gray path must morph. In sub-test #3, there are three reference shapes. The test passes if each of the gray shapes morphs appropriately according to the following descriptions:

1. The gray shape must morph from the diamond to the flower-like shape.
2. The gray shape must morph just like sub-test #1, from the diamond to the flower-like shape.
3. The gray shape must morph from the diamond, to the flower-like shape, and then to the large, rounded diamond shape.
4. The gray shape must morph from the lower-right pointing kite shape to the upper-left pointing kite shape.
5. The gray shape must morph from the tall shape to the wide shape.
6. The gray shape must morph from the wide "D" shape to the narrow "D" shape.

In addition, during the animations whenever the gray shape has the same shape as a reference shape, the stroke of the reference shape must be shown thicker momentarily.

## Test Description

This test validates the operation of the animate element on the <path> element's d attribute.

The following descriptions references to the tests by number. The first test is the one showing on the top left. The last, sixth test is the one showing at the bottom right. Test numbers are alocated from left to right and from top to bottom. For each test, there are reference outline markers which show the expected animated shape at different times in the animation. At the time of the expected shape, the outline of the expected shape is drawn with a thick stroke for 0.2s so the test user can visually check that the shapes are matching at the expected times.

The first test validates a simple from-to animation on a path's d attribute made of M, C and Z commands where both the from and to attributes are specified. The attributes are compatible with the path element's d attribute.

The second test validates a simple to-animation on a path's d attribute made of M, C and Z commands where the to attribute is specified. The attribute is compatible with the path element's d attribute.

The third test validates a simple values-animation on a path's d attribute made of M, C and Z commands where the values attribute is specified and specifies three seperate values. The attribute is compatible with the path element's d attribute.

The fourth, fifth and sixth tests validate that interpolation between compatible path values (i.e., path values which normalize to the compatible values) is supported.

The fourth tests interpolation between a path value containing H, V and L commands (in the from value) and a path value containing compatible h, v and l commands (in the to value).

The fifth tests interpolation between a path value containing C and S commands (in the from value) and a path value containing compatible c and s commands (in the to value).

The sixth tests interpolation between a path value containing Q, T and A commands (in the from value) and a path value containing compatible q, t and a commands (in the to value).

animate-elem-82-t ← index → animate-elem-84-t