W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-images] Generalize the notion of 'invalid images' for image() fallback

From: Bert Bos <bert@w3.org>
Date: Wed, 7 Mar 2012 23:19:01 +0100
Message-Id: <FEC24A57-1720-4CC2-AB95-720133CFC217@w3.org>
To: W3C style mailing list mailing list <www-style@w3.org>

On Mar 7, 2012, at 22:04, Tab Atkins Jr. wrote:

> On Wed, Mar 7, 2012 at 10:58 AM, Bert Bos <bert@w3.org> wrote:
>> On Tuesday 28 February 2012 02:22:12 Tab Atkins Jr. wrote:
>>> With an explicit hook, other sources of <image> could potentially
>>> hook into this as well, though I'm not currently aware of anything
>>> else that would want to.
>> 
>> You mean like linear-gradient() and radial-gradient()? Why wouldn't they
>> make sense inside image()?
> 
> Because they can't "fail" like a url or element() can.  As long as you
> don't make a syntax error, a gradient will *always* produce an image.

But a solid color cannot fail either, and yet it is allowed inside image().



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 7 March 2012 22:19:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:51 GMT