From 766c9f50c0b97f54dc29e258f7c29c2db6cdf57d Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 17 Jun 2009 17:17:11 +0000 Subject: [PATCH] Fix Issue 11: WebKit browsers return initial instead of transparent git-svn-id: http://svg-edit.googlecode.com/svn/trunk@139 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 3112c462..d1512e84 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -157,7 +157,8 @@ function svg_edit_setup() { $('.palette_item').click(function(evt){ var id = (evt.shiftKey ? '#stroke_color' : '#fill_color'); color = $(this).css('background-color'); - if (color == 'transparent') { + // Webkit-based browsers returned 'initial' here for no stroke + if (color == 'transparent' || color == 'initial') { color = 'none'; $(id).css('background', 'url(\'images/none.png\')'); } else {