Specification link: 4.3 Basic DOM interfaces

types-dom-04-b ← index → types-dom-06-f

Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

# types-dom-05-b.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

Once the test is loaded, four rectangles are presented, indicating the result of passing a valid or invalid string to an SVGLength or SVGAngle object, as indicated. Each rectangle will be black if the sub-test did not run, red if it failed or green if it passed.

The test is passed if all four rectangles are green.

## Test Description

This tests that assigning a valid length or angle string to valueAsString on an SVGLength or SVGAngle will affect that object's unitType, and that assigning an invalid string will throw a DOMException with code SYNTAX_ERR.

types-dom-04-b ← index → types-dom-06-f