Specification link: 5.5 The 'symbol' element

struct-svg-03-f ← index → struct-use-01-t

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

# struct-symbol-01-b.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

The test passes if:

- An image is shown in the top left corner of the document.
- A blue and yellow checkerboard pattern is shown in the bottom right corner of the document.
- The background of the document is not filled with red.

## Test Description

The purpose of the symbol test case is to create some symbols and then have them rendered when instantiated by the use element.

This file contains 3 symbol definitions. Only two are ever rendered. There is a viewport defined to be 0,0,1000,1000 on the svg element. Each symbol has is own viewport of the same dimensions. The symbols are scaled when they are instantiated by the use element, The first set of symbols is 4 squares, blue and yellow in color they should appear in the lower right of the view arranged in a checkerboard fashion. The second symbol to be used is an image which should appear in the upper left of the view area. The symbol that is not used and should not be rendered is a large black rectangle. If the symbols don't appear, there is something askew with the use statement, if they appear but either overlap each other or in some way aren't in the correct positions they have not honored either their viewport or were not scaled when placed by the use element in the area defined by it. If everything is black then perhaps a symbol was rendered that should not have been.

struct-svg-03-f ← index → struct-use-01-t