kimoa / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
3 stars 0 forks source link

Image library gradients black in webkit #908

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Insert an image with a gradient ie the Birds > Agelaius phoeniceus 
(Red-winged Blackbird) in the IAN library
2.
3.

What is the expected output? What do you see instead?
Should look as expected, but instead the gradients are lost and everything is 
black.

Please use labels and text to provide additional information.
This can be fixed by restoring:
if((elname === 'use' && !svgedit.browser.isWebkit()) || elname === 
'foreignObject') {

to svgutils.js

The !svgedit.browser.isWebkit() was removed in r1992 to help with issue 717, 
but I think this is a much more important issue. Does anyone mind if I add it 
back in?

Original issue reported on code.google.com by adrianbj...@gmail.com on 23 Feb 2012 at 11:27

GoogleCodeExporter commented 8 years ago
A recent update to this - not sure at what version, but now Chrome (even with 
the !svgedit.browser.isWebkit()) still results in black gradients. Safari is 
still fine. Maybe Chrome will undo this recent change or maybe we'll need a 
workaround.

Original comment by adrianbj...@gmail.com on 14 Mar 2012 at 4:30

GoogleCodeExporter commented 8 years ago
Seems like this gradient issue is resolved again in Chrome - 21.0.1180.89 on 
Mac now works ok with the !svgedit.browser.isWebkit()) check in place.

Original comment by adrianbj...@gmail.com on 6 Sep 2012 at 2:11