Full version, Basic version

Specification link: 7.7 The viewBox attribute

coords-units-03-b ← index → coords-viewattr-02-b

# coords-viewattr-01-b
SVG Image | PNG Image
coords-viewattr-01-b Validates viewBox specification and the preserveAspectRatio attribute Example PreserveAspectRatio - demonstrate available options SVG to fit Viewport 1 Viewport 2 ---------- meet -------------------- xMin* xMid* xMax* ---------- meet ------------------------ *YMin *YMid *YMax ---------- slice ------------------------- xMin* xMid* xMax* ---------- slice --------------------- *YMin *YMid *YMax $Revision: 1.6 $ |

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.

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

coords-units-03-b ← index → coords-viewattr-02-b