[Webkit-unassigned] [Bug 248212] [SVG] default for x1, y1 and y2 is 0% for LinearGradient

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 22 03:51:55 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=248212

--- Comment #2 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Nikolas Zimmermann from comment #1)
> Ahmad, that one is easy. SVGLinearGradientElement.h contains the default
> values as strings for WebKit, x2 is 100%, the rest is unset, aka 0.
> 
>     Ref<SVGAnimatedLength> m_x1 { SVGAnimatedLength::create(this,
> SVGLengthMode::Width) };
>     Ref<SVGAnimatedLength> m_y1 { SVGAnimatedLength::create(this,
> SVGLengthMode::Height) };
>     Ref<SVGAnimatedLength> m_x2 { SVGAnimatedLength::create(this,
> SVGLengthMode::Width, "100%"_s) };
>     Ref<SVGAnimatedLength> m_y2 { SVGAnimatedLength::create(this,
> SVGLengthMode::Height) };

Should I give it a try or you want to take it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221122/34fe1163/attachment.htm>


More information about the webkit-unassigned mailing list