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

Re: [CSS3] foreground-image

From: Eric A. Meyer <eric@meyerweb.com>
Date: Fri, 7 Sep 2007 15:07:30 -0400
Message-Id: <a06240801c307518aef9d@[192.168.1.104]>
To: www-style@w3.org

At 11:56 AM -0700 9/7/07, Andrew Fedoniouk wrote:

>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%;
>}

I may be confused, but how would this differ from:

    img {content: url(blah);}

...or, given a hypothetical extension of the 'url' value:

    img {content: url(attr(src));}

?

-- 
Eric A. Meyer  (eric@meyerweb.com)
Principal, Complex Spiral Consulting   http://complexspiral.com/
"CSS: The Definitive Guide," "CSS2.0 Programmer's Reference,"
"Eric Meyer on CSS," and more    http://meyerweb.com/eric/books/
Received on Friday, 7 September 2007 19:07:48 GMT

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