Full version, Basic version, Tiny version

Specification link: 5.1 Defining an SVG document fragment: the 'svg' element

struct-frag-01-t ← index → struct-frag-03-t

# struct-frag-02-t
SVG Image | PNG Image

This test validates the use of the preserveAspectRatio attribute on the root svg element in an SVG Tiny document. In this document, preserveAspectRatio is set to none and the width and height of the document set to 100%.

The document's viewBox is defined to be 100 by 100 with an origin in (100, 100). The content is made of 2 red squares and 2 orange circles.

Because preserveAspectRatio is set to 'none', the content should appear distorted: squares show as rectangles and circles show as ellipses.

struct-frag-01-t ← index → struct-frag-03-t

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.