W3C home > Mailing lists > Public > www-style@w3.org > September 2007

[CSS3] foreground-image

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 7 Sep 2007 11:56:16 -0700
Message-ID: <000301c7f180$c57d4e60$f502000a@internal.toppro.net>
To: <www-style@w3.org>

To be able to define in CSS rendering of <img> element I propose: 

1) to add set of attributes that are similar to background-*** attributes
but named foreground-***: foreground-image, foreground-position, etc.

Having this standard <img> rendering can be defined in CSS as 

img 
{  
   foreground-image:url(attr("src"));
   foreground-stretch: 100%;
}

There are other useful cases if we will be able to define 
two independent images for the element.

Side note:  
list-style-image can be declared as obsolete in this case -
proposed foreground image can do this with greater flexibility.

Andrew Fedoniouk.
http://terrainformatica.com
Received on Friday, 7 September 2007 18:56:28 GMT

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