Re: Resolving relative URLs in CSS

* Vlad Alexander wrote:
>Can someone please direct me to documentation on how users agents are
>supposed to resolve relative URLs in (external/embedded/inline) CSS?

http://www.w3.org/TR/CSS21/syndata.html#uri i.e. as defined in RFC 3986
using the resource identifier of the style sheet as the base resource
identifier reference.

><head>
><style>@import "format.css";</style>
><base href="http://example.com/" />
></head>

This is not allowed, <base> must precede all elements that refer to
external resources. What the error handling behavior might be depends
on all the things you left off.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Wednesday, 22 March 2006 03:26:04 UTC