- From: Ahmad Saleem via GitHub <noreply@w3.org>
- Date: Tue, 20 Jan 2026 05:17:39 +0000
- To: public-svg-issues@w3.org
@karlcow - But why not keep it consistent to other WebKit code and initialize it at 50% in `.h` (header) similar to Firefox what they do then we wouldn't have to add `else` case here. Your above example compiles but it does not progress WPT.
https://github.com/WebKit/WebKit/blob/c0deda0b0cc53708c29783a6f9806476f7ef08d1/Source/WebCore/svg/SVGRadialGradientElement.h#L70
```
Ref<SVGAnimatedLength> m_fx { SVGAnimatedLength::create(this, SVGLengthMode::Width, "50%"_s) };
Ref<SVGAnimatedLength> m_fy { SVGAnimatedLength::create(this, SVGLengthMode::Height, "50%"_s) };
```
--
GitHub Notification of comment by Ahmad-S792
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1054#issuecomment-3771084025 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 20 January 2026 05:17:40 UTC