Specification link: 8.5 DOM interfaces

paths-data-20-f ← index → paths-dom-02-f

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

# paths-dom-01-f.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

The test has passed if:

- the value for getTotalLength is "300" for both rects
- the value for getPointAtLength is "(60,80)" for the left rect, and "(300,80)" for the right rect
- the value for getPathSegAtLength is "0" on the first line for both rects, and on the second line "m 60 80" for the left rect and "m 300 80" for the right rect

## Test Description

Test the getTotalLength, getPointAtLength and getPathSegAtLength DOM methods.

The left green rect should have text around it. The text should start at 50 user units distance-along-the-path, which is the same as half the rect width. The right green rect should also have text around it, but the text should start 50 units along the path relative to the provided pathLength. Since 50 is half of the provided pathLength the text will start at the lower right-hand corner, and if the text is too long to fit it will be cut off when reaching the upper left corner of the rect.

paths-data-20-f ← index → paths-dom-02-f