Re: Fallbacks

BTW, my original proposal (re: background) wasn't an attempt to add
fallbacks to *all* properties, merely those which would get us the biggest
bang for the buck.

Specifically, with background, the proposed examples demonstrated a way to
extend the background property to be more than just a shorthand, and in a
backward compatible manner (since "," is not currently allowed in the syntax
for 'background').

My point was that perhaps there are a *few* other properties that could be
similarly extended to allow for fallbacks (start with the properties that
allow url values for example, since those would benefit the greatest from
fallbacks, hence my retitling of the thread as "url() fallbacks (was Re:
content: url() is bad)").


On 4/15/04 11:05 AM, "Anne van Kesteren (fora)" <>

>>>> You want all the background-* properties to be linked?
>>> Yes, I think so.
> I think I misunderstanded you. I didn't want them to be linked that way,
> but I understand they kind of "must" be linked that way since the
> shorthand 'background' property is really multiple properties from a
> browser/DOM kind of view?
>> So what does:
>>    background-image: url(404), url(404);
>>    background-color: blue;
> Since my intention was that this is different from:
>  background:blue url(404),url(404);
> I would say the that 'background-image' results to its initial value (I
> don't look up the specs right know, but I expect that happens when the
> resource can't be found).
> And 'background-color' results into 'blue', the only option given, which
> is probably supported. If 'background-color' would read:
>  background-color:blue,lime;
> It would still have been 'blue', since the browser supports that and
> doesn't have to fall back.
>> What about:
>>    background-image: url(white), url(black);
>>    background-color: white, black;
>>    color: black, white;
>> ...? Should 'color' be linked to background-* as well?
>  background-image:url(white);
>  /* assuming that isn't a 404 image */
>  background-color:white;
>  color:black;

Received on Thursday, 15 April 2004 14:16:47 UTC