Re: [svgwg] SVGAnimatedLength initial value for `fx` and `fy` (#1054)

Firefox initialises fx and fy to 50%. Then if fx is not set (no attribute in markup or no setAttribute or no SMIL setting it) then we use cx rather than fx when using the gradient fx value (https://searchfox.org/firefox-main/source/layout/svg/SVGGradientFrame.cpp#555) This is a rendering time check fx is what it is and cx is what it is no matter what but when we render a gradient we may use either value.

We traverse the gradient chain for this so if you've a gradient with cx set but no fx and that references a gradient (via href or xlink:href) that does have fx set then we will use the referenced gradient's fx.

I think the specification is pretty clear as it is. What do you think needs to change?

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


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

Received on Saturday, 17 January 2026 17:23:44 UTC