W3C home > Mailing lists > Public > www-svg@w3.org > January 2014

Re: fill and stroke properties with CSS <image> values

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 22 Jan 2014 09:05:16 -0800
Message-ID: <CAAWBYDA8CYkucXD4rAVR75Mr7dU7iCXVF+hf6WvZEr-hWgbRWQ@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: Erik Dahlström <ed@opera.com>, www-svg <www-svg@w3.org>, public-fx <public-fx@w3.org>
On Wed, Jan 22, 2014 at 8:36 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> On Jan 22, 2014, at 4:34 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> You can wrap a color in image() to transform it into an <image> value.
>
> I just wanted to point out that:
>
> background: url(“image.png”) red;
>
>  means something different than:
>
> fill: url(“image.png”) red;
>
> In the first example the color is drawn, in the second it is just a fallback.
>
> This is unfortunate but can not be changed.

Ah, gotcha.  I'd forgotten about that unfortunate aspect of the grammar.

~TJ
Received on Wednesday, 22 January 2014 17:06:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:50 UTC