struct-use-202-t

raster image of struct-use-202-t

This test tests the reference restriction B on the use element.

A compliant SVG Tiny 1.2 user agent must treat each of the invalid IRI:s as if the xlink:href attribute hadn't been specified, which is the same as disabling rendering of the use element in question. Thus for the test to pass the content that the use element tries to reference must be invisible, the end result should be an empty (white) rect.

For a user agent that handles at least SVG 1.1 Basic the testcase has still passed if the referenced content in the rect that is labelled "B" is visible since this is allowed for 1.1. If the script in the external resource is executed then the color of the rect will be green. If not then the rect will be red.