[Webkit-unassigned] [Bug 41952] linearGradient not working when created through Javascript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 9 09:05:27 PDT 2010


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





--- Comment #1 from kentozier at gmail.com  2010-07-09 09:05:28 PST ---
In an additional test, I found that if you copy the generated SVG directly out of Safari's web inspector, slap a 'DOCTYPE' and <?xml ...> header on it, save it as a file and drag that file into Safari, it does render the gradient. 

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500">
    <linearGradient id="SVG-GRAD">
        <stop style="stop-color:#FF0000" offset="0"></stop>
        <stop style="stop-color:#000000" offset="1"></stop>
    </linearGradient>
    <circle cx="250" cy="250" r="200" fill="url(#SVG-GRAD)"></circle>
</svg>

Since everything between the <svg>and </svg> tags was copied directly from the browser, this non-rendering only seems to be an issue when SVG gradients are generated dynamically.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list