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

CSS21 and CSS3 lexical rules question

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 7 Sep 2004 11:48:14 -0700
Message-ID: <000c01c4950b$3d9a7c90$f604000a@AFedoniouk>
To: <www-style@w3.org>

Analyzing CSS2.1 and CSS3 ([1],[2]) I've found that rules
for url defintion does not include '/' character.

So, following given rules:

url  ([!#$%&*-~]|{nonascii}|{escape})*
"url("{w}{url}{w}")" {return URI;} ,


cannot be treated as a valid URL. May it is better to define first rule as
url  ([!#$%&*-~/]|{nonascii}|{escape})*

And what about whitespaces? Following rules above:

      url(my background.png)

is also not valid as it contains whitespace in the middle.
Is this limitation make sence?

Andrew Fedoniouk.
Terra Informatica Software, Inc.

[1] http://www.w3.org/TR/CSS21/grammar.html#q2 and
[2] http://www.w3.org/TR/2003/WD-css3-syntax-20030813/#lexical
Received on Tuesday, 7 September 2004 18:48:49 UTC

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