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

Re: [CSS3] foreground-image

From: James Craig <jcraig@apple.com>
Date: Fri, 7 Sep 2007 13:23:53 -0700
Message-Id: <A02A609F-CEC6-4AA0-9455-B1FDAC6B9114@apple.com>
To: www-style@w3.org

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:
Received on Friday, 7 September 2007 21:09:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:30 UTC