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

animate-elem-77-t.svg

FAIL

raster image of animate-elem-77-t.svg

Operator Script

Run the test. No interaction required.

Pass Criteria

The document is animated such that it alternates between two states, an alternation occurring every second. For the test to pass each row must show a colored letter A that alternates between the two exact shapes and positions shown by the gray silhouettes.

Test Description

Tests the inheritance of animated values on text.

This test demonstrates how <set> elements change text properties on a <text> element. For each of the text properties being tested, 3 <set> elements are set. The first <set> element acts directly on the <text> element. The second <set> element acts on a <g> containing children. The third <set> element acts on an <a> containing children. In each case the test validates that the animated value set on the <g> and <a> elements is inherited by the <text> element. All the <set> elements have a begin attribute set to 0s with an offset of 1s after end. So, the animation will apply 1s after the document is loaded and will repeat every 1s after the animation ends.

The first <set> validates the transform property. When applied to the <text> element, the letter A will be translated to the right every 1s, in the <text> column. When applied to the <g> element, the letter A inherits the transform value and is translated to the right every 1s, as seen in the <g> column. When applied to the <a> element, the letter A inherits the transform value and is translated to the right every 1s, as seen in <a> column.

The second <set> validates the text-anchor attribute. When applied to the <text> element, the anchor position of letter A is moved from start to end. When applied to the <g> and <a> element, the property is inherited and hence the anchor position of letter A is moved from start to end in the second row.

The third <set> validates the font-size attribute. The font size of letter A is changed from 20 to 30. When applied to <g> and <a> elements, the letter A inherits the font-size and hence in row 3, letter A has a font-size of 30 in all 3 right columns of row 3.

The fourth <set> validates the font-family attribute. The font-family is changed from default to serif. When applied to <g> and <a> elements, the letter A inherits the font-family attribute and hence in row 4, letter A has serif font-family in all 3 columns.

The fifth <set> validates the font-style attribute. The font-style is changed from normal to italic. When applied to <g> and <a> elements, the letter A inherits the font-style attribute and hence in row 5, letter A is animated to italic in all 3 columns.

The sixth <set> validates the font-weight attribute. The font-weight is changed from normal to bold. When applied to <g> and <a> elements, the letter A inherits the font-weight attribute and hence in row 6, letter A is changed to bold on the right.