W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: issue with url() in CSS 2.1 grammar

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 27 Jun 2008 14:36:09 +0200
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <9dn96452ki1ql4v7gca26puid4blt1mkov@hive.bjoern.hoehrmann.de>

* Daniel Glazman wrote:
>The issue is not related to namespaces. The following is also perfectly
>valid for the same reasons :
>
>   @import url();
>   foo { background-image: url(); }
>
>The problem is that a URL is not supposed to be zero-length...

But in a style sheet http://example.com/style.css this is the same as

   @import url(http://example.com/style.css);
   foo { background-image: url(http://example.com/style.css); }

And somewhat similar to e.g.

   @import url(#);
   foo { background-image: url(#); }

I don't think we gain much disallowing this at the core syntax level.
-- 
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 Friday, 27 June 2008 12:36:50 GMT

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