Full version, Basic version, Tiny version

Specification link: 5.8 Conditional processing

struct-cond-02-t ← index → struct-defs-01-t

# struct-cond-03-t
SVG Image | PNG Image
struct-cond-03-t.svg Tests proper handling of <switch> element with requiredFeature attribute. This viewer does more than SVG Tiny This is not an SVG Tiny Viewer $Revision: 1.9 $ |

Tests the <switch> element with requiredFeature.

Because SVG Tiny does not support DOM, an SVG Tiny implementation which does not support other SVG Profiles should show a green rectangle. If the application supports the DOM, meaning that it does more than just SVG Tiny, it should show a red rectangle.

On the bottom half of the test, there is another switch. The first child has a requiredFeature set to http://www.w3.org/TR/SVG11/feature#BasicText which all SVG Tiny implementations should support. If the application does, another green rectangle is displayed. Otherwise, a red rectangle shows.

struct-cond-02-t ← index → struct-defs-01-t