W3C home > Mailing lists > Public > www-style@w3.org > October 2006

Re: [css3-namespace] XML Core WG's review

From: Etan Wexler <ewexler@stickdog.com>
Date: Thu, 26 Oct 2006 08:49:49 -0400
Message-ID: <4540AEED.2070300@stickdog.com>
To: www-style@w3.org

fantasai wrote about the 'namespace' at-rule in CSS:

> Prefixes are case-insensitive because CSS is case-insensitive. The only
> parts of a style sheet that are case sensitive are the parts that involve
> string matching against something outside of CSS (e.g. URLs, XML element
> names).

Authors and authoring software mint prefixes, and there is no prefix 
defined in any CSS specification. I would specify a comparison function 
that is sensitive to case, but I won’t make a fuss over the matter.

Insensitivity to case creates the edge case which the following style 
sheet demonstrates. Which declaration wins? Why?

/* U+0069 Latin small letter I */
@namespace istanbul url("data:,example");

/* U+0069 Latin small letter I */
istanbul|example {color: blue}

/* U+0131 Latin small letter dotless I */
ıstanbul|example {color: yellow}
Received on Thursday, 26 October 2006 12:47:35 UTC

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