W3C home > Mailing lists > Public > www-style@w3.org > January 2006

Re: Idea: background-image-frame attribute

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sun, 1 Jan 2006 11:09:59 +0000 (GMT)
Message-Id: <200601011109.k01B9xo06733@djwhome.demon.co.uk>
To: www-style@w3.org

> 
> 
> Pretty wide spreaded situation when images are used to show different states 
> of buttons/hyperlinks/etc.

It's not clear to me that this usage does constitute a background image.  It
seems to me that the images are likely to be foreground and the whole process
is somewhat behavioural.

>      background-image: url(nextpage.png);
>      background-image-frame: 0px 0px 10px 10px;

I don't like this.  It seems, to me, to be supporting a hack.  If one wants to
support image libraries, I would suggest a better approach would be to define
fragment micro-syntaxes for various image formats; for some formats, which 
permit multiple images, that might simply be the image sequence number.  That
might mean that authors needed to use better tools, in order to access the
full capabilities of their imaage formats.

It would also gracefully degrade better, as the fallback behaviour for the
proposal is to display on and off states simultaneously, whereas most renderers
will only display the first image of a sequence.

Note also, that the units that were clearly intended here were image pixels,
not CSS pixels, so should be pure numbers, if this proposal were to be
more directly adopted.
Received on Sunday, 1 January 2006 11:13:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:42 GMT