x: Positions the image horizontally from the origin. y: Positions the image vertically from the origin. width: The width the image renders at. Unlike HTML's , this attribute is required. height: The height the image renders at. Unlike HTML's , this attribute is required. href and xlink:href: Points at a URL for the image file. preserveAspectRatio: Controls how the image is scaled.

The image test case checks to see if the basic image formats allowed in are supported using the data: URI schema and base64 encoding.

The upper right has an JPG image the lower right has a PNG image. They are the same image. Those positions are relative to the upper left of the entire canvas. If any of the components are missing, then an image format is not being properly supported.

Run the test. No interaction required.

The test passes if two identical images are shown.

$RCSfile: struct-image-04-t.svg,v $ $Revision: 1.7 $