[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:06 PST 2022


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

--- Comment #1 from Nikolas Zimmermann <zimmermann at kde.org> ---
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) };

-- 
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/8145437b/attachment.htm>


More information about the webkit-unassigned mailing list