RE: [css3-images] Features Overview

> Image Fallbacks
> ===============
> 
>    There'd been discussion of fallback images, particularly for
> background
>    images, in the past. A fallback color was originally integrated into
> the
>    Backgrounds and Borders spec. After discussions on syntax and
>    understandability, the feature was dropped with the suggestion to
>    integrate it into a different mechanism. This is the image()
> notation's
>    comma-separated syntax:
> 
>    background-image: image(url(wavy.svg), 'wavy.png', "wavy.gif",
>                            rgba(255,0,0,0.5));
> 
>    http://dev.w3.org/csswg/css3-images/#image-notation
> 
>    Implementation notes:
>      none

Personal opinion: 
At the rate we're going, background will soon require a full backgroundparser.dll just for its value property.  Find another property to torture parsers with.


background: image(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAABnRSTlMAAAAAAABupgeRAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAEUlEQVR42mP4%2F58BCv7%2FZwAAHfAD%2FabwPj4AAAAASUVORK5CYII%3D),radial-gradient(right 10% bottom,7em 12%,rgba(200,100,50,0.5) 17px,rgba(0,0,0,1.0) 27.35%),linear-gradient(blue,red),'wavy.png' 150dpi,"wave.gif","fancy.svg",hsla(0,100%,50%,.916)),sadpanda.jpg content-box 17px/23.27em,red linear-gradient(left,purple,rgba(0,255,0,0.5));

Do authors really want to specify things like this?  I feel sorry for the poor sap that has to unravel it for the next content push of such a site.



That aside, Example V refers to the color 'blue' when the markup uses rgb(255,0,0,0.5) which is red with a 50% alpha channel.  I pray we're not remapping the blue named color in the image() situation. ;)

This further illustrates my point.  The complexity has gotten so cumbersome that by the time you unravel the syntax you might not even realize that the fallback color isn't actually what you wanted.

Received on Friday, 6 May 2011 09:57:28 UTC