On Thu, Sep 18, 2014 at 11:15 AM, Vivek Galatage <viv...@chromium.org> wrote: > Hi all, > > I just wrote a test case which involves applying a CSS image filter > (--webkit-filter or filter) using a grayscale filter. > http://jsfiddle.net/whyn9075/ > > With this image element, I used a canvas rendering context 2d to drawImage. > Here is the link, http://imgur.com/7OgXEwp, to the screenshot of the > behavior on chrome and FF. > > The question is: Should the filter even be applied to the bitmap drawn on > the canvas?
CSS filters are a rendering-time operation. They don't do anything to the image data itself, which is what <canvas> uses when you call drawImage(). ~TJ