Full version, Basic version

Specification link: 17.2 Linking into SVG content: URI fragments and SVG views

linking-uri-01-b ← index → masking-mask-01-b

# linking-uri-02-b
SVG Image | PNG Image

Verify the capability to handle links to 'view' elements, and the permissible attributes on those elements. All of the links in this test case are external, i.e., to 'view' elements in another the SVG file. That file is linking-uri-01-b.svg. This test is one of a pair, with linking-view-BE-04, which is substantially identical except that its links are all internal, targeting the same 'view' elements as the corresponding links in this test case, i.e., they are external).

In the four quadrants of the initial picture are four graphical objects. Clockwise from upper right, they are a red rectangle, blue ellipse, green polygon (pentagon), and yellow circle. Each is labelled and tightly boxes with a rectangular frame. These are identical to their counterparts in linking-uri-01-b.svg, in which file each has an associated 'view' element, with attributes per the labels in the initial picture.

In the center is a gray box with four lines of text, each of which says "Go to" followed by Rectangle, Ellipse, Polygon, and Circle, respectively. Each of these is contained within an 'a' element, whose xlink:href names the respective 'view' element of the respective graphical object.

Activating the Rectangle link should cause the whole of linking-uri-01-b.svg to be displayed, which is visually similar similar to linking-uri-02-b.svg. Its 'view' element has no attributes (other than id), so the correct view in the frame is of the parent 'svg' element, which is the whole picture.

Assuming that a "back" action has been requested, activating the Ellipse link should cause the initial picture to be replaced in the frame by the whole ellipse element, uniformly scaled, with its boxing rect just inside the frame.

Assuming that a "back" action has been requested, activating the Polygon link should cause the initial picture to remain unchanged within the frame, except that the polygon is "highlighted" (the meaning of highlighted is not further specified).

Assuming that a "back" action has been requested, activating the Circle link should cause the initial picture to be replaced in the frame by the whole whole element, non-uniformly scaled so that it is stretched horizontally into an ellipse, with its boxing rect just inside the frame.

There are several reference images associated with this test case. The first illustrates the correct initial state of the rendered SVG file, which should also be the correct picture after the Rectangle link is executed. The second, third, and fourth illustrate the correct images as described above after respectively the Ellipse, Polygon, and Circle links are activated. (Note. This harness does not yet provide access to multiple PNGs; the PNG for the initial view is shown.)

The test uses the 'rect', 'circle', 'ellipse', and 'polygon' elements, as well as basic fill (solid simple colors), stroke (black and colored 1-pixel lines), font-family (Arial) and font-size properties.

linking-uri-01-b ← index → masking-mask-01-b

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License.
To contribute to a W3C Test Suite, see the policies and contribution forms.