JonazMartinez / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

IE don't recognize some names of colors #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From

https://sourceforge.net/tracker2/?
func=detail&aid=2022492&group_id=163391&atid=827560

Hi,

IE dont recognize some names of colors.

I tryed:
ctx.strokeStyle = "lightgreen";

IE bug; FF ok, Opera ok

---------------

Solution:
ctx.strokeStyle = "rgb(144, 238, 144)";

All browsers ok

Original issue reported on code.google.com by erik.arv...@gmail.com on 22 Mar 2009 at 12:47

GoogleCodeExporter commented 9 years ago
This can be "fixed" by always passing all the colors through a transform
color function before generating the vml

var colorToTransform = {
lightgreen: '#abcdef'
};

function transformColor(s) {
return colorToTransform[s] || s;
}

Original comment by erik.arv...@gmail.com on 22 Mar 2009 at 12:48

GoogleCodeExporter commented 9 years ago
I've added that functionality for a charting program I'm working on...

Still a work in progress but here's the latest I have. I've also added support 
for hsl(280,75%,75%).

Original comment by jvivenzio@mac.com on 6 May 2009 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by erik.arv...@gmail.com on 23 Jun 2009 at 4:48