frshca
frshca

Reputation: 1339

HTML Canvas and/or SVG draws green in Chrome, expected in Firefox

I decided to play around with Canvas and SVG this morning so I could learn about these elements more. So I came up with an idea to copy an image from a canvas element and convert it to a bunch of SVG rects.

It was pretty simple but I found a strange bug in Chrome: most of rects are colored green!

Here is a sample: http://codepen.io/anon/pen/iKvBe

Look at it in Chrome and Firefox. Any idea what is going on?

thanks

Upvotes: 0

Views: 161

Answers (1)

Paul LeBeau
Paul LeBeau

Reputation: 101820

It works on occasion. But it is clearly a JS/V8 optimisation bug. You should report it as a Chrome bug.

https://code.google.com/p/chromium/issues/list

Upvotes: 0

Related Questions