This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25243 - <canvas>: Filters
Summary: <canvas>: Filters
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 00:09 UTC by Ian 'Hixie' Hickson
Modified: 2016-04-02 06:54 UTC (History)
3 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2014-04-03 00:09:51 UTC
On Sat, 15 Mar 2014, Dirk Schulze wrote:
>
> I would suggest a filter attribute that takes a list of filter
> operations similar to the CSS Image filter function. Similar to
> shadows[2], each drawing operation would be filtered. The API looks like
> this:
>
> partial interface CanvasRenderingContext2D {
>     attribute DOMString filter;
> }
>
> A filter DOMString could looks like: “contrast(50%) blur(3px)”
>
> With the combination of grouping in canvas it would be possible to
> group drawing operations and filter them together.
>
> Filter functions include a reference to a <filter> element and a
> specification of SVG filters. I am unsure if a reference do an element
> within a document can cause problems. If it does, we would just not
> support SVG filter references.
Comment 3 Anne 2016-04-02 06:54:45 UTC
https://github.com/whatwg/html/pull/978