Reputation: 1339
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
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