Re: [css3-syntax][css3-values] use of IRIs in url() values

On Mon, May 21, 2012 at 10:59 PM, Cameron McCormack <> wrote:
> Does CSS allow IRIs to be used inside url() values?
> data:text/html;charset=utf-8;base64,PCFkb2N0eXBlIGh0bWw%2BPGJvZHkgc3R5bGU9ImJhY2tncm91bmQtaW1hZ2U6IHVybChodHRwOi8vcsOka3Ntw7ZyZ8Olcy5qb3NlZnNzb24ub3JnL3Jha3Ntb3JnYXMuanBnIj4%3D
> seems to work in various browsers.  zcorpan pointed out to me that
> css3-syntax should parse the entire url(...iri...) into a URI token, but I
> don't see anything in that says
> how to interpret the bit of the token between the parens and the optional
> quotes (i.e. as a URI, an IRI, or something else).

CSS makes no judgement about what's inside of the url() notation.
Both the 2.1 Core Grammar and my recasting in Syntax just accept
everything inbetween the parens.

The only time we care about the contents are when we absolutize the
URLs.  Right now we refer to RFC 3986 for that.  Adam Barth says that
it's a useful enough placeholder for a real URL spec, and that we
shouldn't worry about it further from a CSS perspective.


Received on Tuesday, 22 May 2012 21:51:43 UTC