Re: [css-compositing] blending in canvas

On Wed, Nov 14, 2012 at 8:45 AM, Rik Cabanier <cabanier@gmail.com> wrote:
> the Compositing and Blending spec has a chapter on adding blending to the
> Canvas 2d context [1].
> Blending is currently defined by overloading the 'globalCompositeOperator'
> [2] with additional values.
>
> People have raised this as an issue because CSS split compositing and
> blending into 2 properties and collapsing them for Canvas seems
> inconsistent.
> The main reason for this difference, is that Canvas is built upon Core
> Graphics on the hood and this API set can't implement compositing and
> blending separately. Because of this, splitting the properties can cause
> combinations that are not implementable (ie source-atop + multiply).
>
>
> What do people think?
> Is it more important for the spec to be consistent, or to have a feature
> that can be consistently implemented today?

I'm fine with the current proposal.  In the future, if it becomes more
palatable to mix arbitrary compositing and blending, we can simply
change the attribute to accept up to two keywords, one from the
compositing list and one from the blending list.

~TJ

Received on Wednesday, 14 November 2012 17:05:50 UTC