- From: viralipurbey via GitHub <noreply@w3.org>
- Date: Wed, 10 Jun 2026 13:40:00 +0000
- To: public-svg-issues@w3.org
viralipurbey has just labeled an issue for https://github.com/w3c/svgwg as "Agenda+":
== Clarify that `getPathData()` returns the attribute base value, not the CSS resolved/animated value ==
The `SVGPathData` mixin spec text says it corresponds to "the typed value of the d geometry property," which implies the CSS resolved value. The spec is also silent on whether animated values (via SMIL <animate> or Web Animations API) are reflected.
This is ambiguous in two ways:
1. If CSS d property and the d attribute diverge (due to cascade), which does `getPathData()` return?
2. During active animation, does it return the interpolated animated value or the base value?
**Proposed resolution**: Clarify that `getPathData()` returns the base value of the d attribute (not the CSS computed value and not the animated value).
This matches `getAttribute("d")` semantics and Firefox's shipping behavior.
`setPathData()` should similarly be defined as equivalent to `setAttribute("d", ...)`.
See https://github.com/w3c/svgwg/issues/1130
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 10 June 2026 13:40:01 UTC