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

Basically 

https://searchfox.org/wubkat/rev/021be8e5aefd8742e091c6369be13fd745207359/Source/WebCore/svg/SVGRadialGradientElement.cpp#187-192
```cpp
// Handle default values for fx/fy
if (!attributes.hasFx())
    attributes.setFx(attributes.cx());

if (!attributes.hasFy())
    attributes.setFy(attributes.cy());
```

it should be `s/Handle default values/Handle initial values/`


so something along

```cpp
  // Handle initial values for fx/fy
  if (!attributes.hasFx()) {
      if (attributes.hasCx())
          attributes.setFx(attributes.cx());
      else
          attributes.setFx(SVGLengthValue(SVGLengthMode::Width, "50%"_s));
  }

  if (!attributes.hasFy()) {
      if (attributes.hasCy())
          attributes.setFy(attributes.cy());
      else
          attributes.setFy(SVGLengthValue(SVGLengthMode::Height, "50%"_s));
  }
```


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


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

Received on Monday, 19 January 2026 09:17:28 UTC