← back to v160 · svg-path-data-api

conformance · v160

v160 · svg-path-data-api — conformance probe

10 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: … spec: https://w3c.github.io/svgwg/specs/paths/#InterfaceSVGPathData chromestatus: #4787972240179200 generated 2026-11-22T12:00:00Z by weekly-hardening-builder
0
pass
0
fail
0
blocked
10
total
id contract kind verdict detail
getpathdata-is-method SVGPathElement exposes getPathData() as a method (SVGPathData mixin). spec ↗ typeof …
setpathdata-is-method SVGPathElement exposes setPathData() as a method (SVGPathData mixin). spec ↗ typeof …
getpathsegmentatlength-is-method SVGPathElement exposes getPathSegmentAtLength() as a method. spec ↗ typeof …
getpathdata-returns-authored-segments getPathData() returns plain {type, values} objects for each command as authored, keeping relative and shorthand letters. spec ↗ script …
normalize-yields-absolute-mlcz getPathData({normalize: true}) converts relative, H/V, quadratic and arc commands to absolute M, L, C and Z only. spec ↗ script …
setpathdata-accepts-plain-objects setPathData() accepts plain object literals and sets the d attribute so getPathData() round-trips them. spec ↗ script …
empty-path-getpathdata-empty getPathData() on a path with no valid path data returns an empty sequence. spec ↗ script …
base-value-ignores-css-d getPathData() reflects the d attribute's base value, not a CSS d: path() override. spec ↗ script …
setpathdata-missing-values-typeerror setPathData() throws a TypeError when a segment lacks the required values member. spec ↗ script …
segment-at-length-clamps-and-null getPathSegmentAtLength() clamps a negative distance to the first segment, clamps an over-long distance to the last, and returns null for an empty path. spec ↗ script …