Re: [svgwg] Clarify whether `var()` (custom properties) are allowed in SVG presentation attributes, and how they are parsed/resolved (#1031)

The path of least resistance here seems to be allowing `var()` (and arbitrary substitution functions in general)? Since it's already working in Firefox and Safari, in addition to _partially_ working in Chromium (just not for length attributes), it could be hard or impossible to remove the existing support.

Though, it means that if the spec currently expects to be able to understand the value at parse-time (e.g. to do range checks and whatnot), that won't be possible for these values.

-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1031#issuecomment-3552415360 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 19 November 2025 12:20:58 UTC