sammycage / lunasvg

SVG rendering and manipulation library in C++
MIT License
866 stars 124 forks source link

Set stop::offset default/initial value = 0 #88

Closed fdwr closed 2 years ago

fdwr commented 2 years ago

Per https://developer.mozilla.org/en-US/docs/Web/SVG/Element/stop and https://svgwg.org/svg2-draft/pservers.html#GradientStopAttributes, set initial/default value = 0 when offset is absent for gradients, as some tools evidently omit the offset attribute when 0 for minimization.

For issue https://github.com/sammycage/lunasvg/issues/85.

sammycage commented 2 years ago

<3 Nice job