W3C home > Mailing lists > Public > www-style@w3.org > July 2011

background-image-frame

From: Andrew Fedoniouk <andrew.fedoniouk@live.com>
Date: Thu, 7 Jul 2011 23:51:53 -0700
Message-ID: <BLU165-ds1973D0904CD3836111CBEAF8400@phx.gbl>
To: <www-style@w3.org>
It would be convenient if CSS will have 'background-image-frame: "string" '
property. PNG and other image formats support annotated/taged/named
sub-images so in principle they can be used as image-lists - single-file 
collections of
multiple images / frames.

CSS "sprites" as a workaround are quite popular among Web designers
but current solution [1] looks more like a hack rather than a solution.

This:

  #panel1b a { background: url(test-3.jpg) "normal" no-repeat; }
  #panel1b a:hover { background-image-frame: "hover"; }
  #panel1b a:active { background-image-frame: "active"; }

[1] http://www.alistapart.com/articles/sprites

-- 
Andrew Fedoniouk

http://terrainformatica.com 
Received on Friday, 8 July 2011 06:52:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:42 GMT