SVG: Error 400 with SVG fill="url(#mygradient)" to linearGradient

392 views
Skip to first unread message

Javier Gómez

unread,
Apr 22, 2014, 1:14:39 PM4/22/14
to gwd...@googlegroups.com
Hi

A SVG with an element with fill="url(#mygradient)"  to a linearGradient produces error 400. Example that will throw an error:

<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="960px" height="560px" viewBox="0 0 960 560" enable-background="new 0 0 960 560" xml:space="preserve">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="74.5" y1="111" x2="233.5" y2="111">
<stop  offset="0" style="stop-color:#FFFFFF"/>
<stop  offset="1" style="stop-color:#000000"/>
</linearGradient>
<rect x="74.5" y="58.5" fill="url(#SVGID_1_)" stroke="#000000" stroke-miterlimit="10" width="159" height="105"/>
</svg>


Any solution?

Javier Gómez

unread,
Apr 29, 2014, 10:25:27 AM4/29/14
to gwd...@googlegroups.com
Hi

I have attached a test to show this bug with SVG urls . This file works correctly in a browser but GWD is unable to make a preview or publish. 

I hope it is helpful to GWD Team
p4.html

jasonl...@gmail.com

unread,
Apr 29, 2014, 2:25:06 PM4/29/14
to gwd...@googlegroups.com
Hi Javier

Thank you for reporting the bug. I have filed a bug report for the issue and we'll investigate.

Thanks for using Google Web Designer
Jason (GWD team)

Reply all
Reply to author
Forward
0 new messages