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

Re: [CSS3] foreground-image

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Fri, 7 Sep 2007 14:56:53 -0700
Message-ID: <002901c7f19a$00705d50$f502000a@internal.toppro.net>
To: "James Craig" <jcraig@apple.com>, <www-style@w3.org>


----- Original Message ----- 
From: "James Craig" <jcraig@apple.com>
To: <www-style@w3.org>
Sent: Friday, September 07, 2007 1:23 PM
Subject: Re: [CSS3] foreground-image


> 
> Eric A. Meyer wrote:
> 
>> ...or, given a hypothetical extension of the 'url' value:
>>    img {content: url(attr(src));}
> 
> So, a path in a CSS url() value is relative to the CSS document that  
> defines the style property, but a path in an 'src' attribute is  
> relative to the HTML document that contains it. How should this  
> discrepancy be rectified in the previous example?
> 
> I couldn't find the answer here:
> http://www.w3.org/TR/REC-CSS2/generate.html#propdef-content
> 
> 

I think that attr() should return already resolved relative URLs
for attributes that contain URLs.

Andrew Fedoniouk.
http://terrainformatica.com
Received on Friday, 7 September 2007 21:57:01 GMT

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