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

Re: beef with CSS-specified image URLs

From: Liam Quinn <liam@htmlhelp.com>
Date: Sun, 27 Jul 1997 22:28:02 -0400
Message-Id: <3.0.2.32.19970727222802.0089c490@undergrad.math.uwaterloo.ca>
To: www-style@w3.org
-----BEGIN PGP SIGNED MESSAGE-----

At 06:14 PM 27/07/97 -0700, Todd Fahrner wrote:
>When specifying an image in CSS (say, a background image, or a list-item
>marker), the URL given in the stylesheet is relative to the HTML 
document,
>not to the stylesheet, at least as implemented in NS4. The specification 
is
>unclear.

Actually, the spec is crystal clear on this point:

"Partial URLs are interpreted relative to the source of the style sheet, 
not relative to the document" (http://www.w3.org/pub/WWW/TR/REC-CSS1#url)

>I haven't played with @import yet within stand-alone CSS files. I assume
>URLs within these will refer relatively to the CSS document?

Yes, since the above applies to all URLs.

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQB1AwUBM9wDsQ/JhtXygIx1AQHGJAMApFd1wYXjHAAQsTnm28QHvwhDsFX67qlB
SyVEsODovdi5CZaQXYKgp0CMBW3bUMBTjaSfam6HvCE+R49mosv6X9NMW8LFxWX1
zownAD3abLoTG5Fa7JDJSS+kFMnCdrWq
=Snvn
-----END PGP SIGNATURE-----

Liam Quinn
===============  http://www.htmlhelp.com/%7Eliam/  ===============
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/
======  PGP Key at http://www.htmlhelp.com/%7Eliam/pgp.html  =====
Received on Sunday, 27 July 1997 22:27:29 GMT

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