"> "> "> ]>

This test verifies the implementation of the viewBox and the preserveAspectRatio attribute. This is a modified version of the sample file included in the SVG specification. It exercises the various preserveAspectRatio values and uses a general entity definition in order to make reading of the SVG source easier.

Load the document in the user agent.

The rendered picture should match the reference image exactly except for variations in the labeling text.

$RCSfile: coords-viewattr-01-b.svg,v $ Example PreserveAspectRatio - demonstrate available options Test available options of preserveAspectRatio SVG to fit &Smile; Viewport 1 &Viewport1; Viewport 2 &Viewport2; ---------- meet -------------------- xMin*&Viewport1; &Smile; xMid*&Viewport1; &Smile; xMax*&Viewport1; &Smile; ---------- meet ------------------------ *YMin&Viewport2; &Smile; *YMid&Viewport2; &Smile; *YMax&Viewport2; &Smile; ---------- slice ------------------------- xMin*&Viewport2; &Smile; xMid*&Viewport2; &Smile; xMax*&Viewport2; &Smile; ---------- slice --------------------- *YMin&Viewport1; &Smile; *YMid&Viewport1; &Smile; *YMax&Viewport1; &Smile; $Revision: 1.8 $