W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [css3-images] Premultiplication switch (was: gradient pre-multiplied interpolation)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 27 Jul 2011 15:11:09 -0700
Message-ID: <CAAWBYDDKMyDk_YfYX_fXoH_imVHDA-cJcMTnAibHyQ4b2vAmGw@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: Chris Lilley <chris@w3.org>, Leif Arne Storset <lstorset@opera.com>, "www-style@w3.org" <www-style@w3.org>
On Wed, Jul 27, 2011 at 2:53 PM, Brian Manthos <brianman@microsoft.com> wrote:
> I meant an example usage, but that's good enough for now.
>
> I'd rather see the interpolation specified in the gradient specification itself.
>
> Doing it as part of the gradient itself would allow for varying the interpolation mode across layers of a background-image specification, whereas doing it as a separate property wouldn't allow that.  Unless of course you want to make color-interpolation a layered property as well...
>
> Further, I don't like idea of introducing an interaction of the "gradient specification within property A" (where A is background-image, list-style-image, or generated content) to interact with a separate property (color-interpolation).  Doing so making caching/sharing opportunities more complicated, adds general implementation complexity, and easily leads to "author surprise".

Yeah, color-interpolation applies to all uses of colors on the
element.  This is somewhat less of a big deal in SVG, where you can
limit it to only really affect "fill" and "stroke" on a single shape.


> Two related notes:
> (1) CSS Animations/Transitions question - Does the color-interpolation property impact them?
> (2) We should definitely have a CSS test suite example that captures how transitioning/animating color-interpolation property should behave.

The color-interpolation function isn't currently defined non-SVG
content, and <image> values can't currently be used in SVG content, so
it's not important to specify or test anything yet.  If we do change
one or both of these, though, we totally need to do so.  (I definitely
plan to change the latter, but I'll be specifying it in Image Values
4.)

We should give some thought to this, but I don't want to spend any
cycles on it right now.  ^_^

~TJ
Received on Wednesday, 27 July 2011 22:12:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:42 GMT