<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14857</bug_id>
          
          <creation_ts>2011-11-17 15:51:37 +0000</creation_ts>
          <short_desc>Shouldn&apos;t filter effects work with Canvas 2D context?</short_desc>
          <delta_ts>2012-11-08 14:57:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Filter Effects</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Hardy">vhardy</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60113</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Hardy">vhardy</who>
    <bug_when>2011-11-17 15:51:37 +0000</bug_when>
    <thetext>Shouldn&apos;t we coordinate with the Canvas spec. editor to get filter effects to work with Canvas? The idea would be to have the following work:

var ctx = canvas.getContext(&apos;2d&apos;);

ctx.filter = &quot;grayscale(0.5)&quot;;

// from there on, all rendering calls are conceptually filtered before being composited on the canvas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60152</commentid>
    <comment_count>1</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-11-18 20:03:17 +0000</bug_when>
    <thetext>I agree we should do this. I wonder about the modality of the effect though. I don&apos;t think you&apos;d want every operation to filter - rather you&apos;d want to set a filter mode, draw a lot of stuff, then apply the filter to the collected content. This is similar to group opacity in SVG and transparency layers in CoreGraphics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60153</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2011-11-18 20:03:58 +0000</bug_when>
    <thetext>If you&apos;re using canvas, you can already do filter-like effects via image data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78052</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2012-11-08 14:53:57 +0000</bug_when>
    <thetext>I don&apos;t think this is in the scope of this implementation (Filter Effects). And as Simon said, you can use ImageData already.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>