W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: : in CSS

From: Sigurd Lerstad <sigler@bredband.no>
Date: Thu, 20 Feb 2003 15:09:01 +0100
Message-ID: <005801c2d8e9$9e698410$7d1273d5@mmstudio>
To: <www-style@w3.org>

> Chris Lilley wrote:
> > @namespace foo url(http://www.w3.org/2000/svg);
> > foo|svg { fill: purple }
> >
> > Not that this will match all occurrences of the svg element in the SVG
> > namespace regardless of whether they use s:, svg: foobar: or nothing
> > as their prefix.
> Just to clarify, that "Not" there is really "Note" :)
> > The alternative that people might have considered trying, svg\:svg is
> > bogus and harmful, because it pretends that the whole string is one
> > local name and because it makes assumptions about what the namespace
> > prefix is.
> Note that it would be *theoretically* possible given a document conforming
> XML 1.0 but not to the namespaces rec to have an element the name of which
> contain a colon. In that case I guess that foo\:bar would be the right way
to do
> it. I'd think however that anyone foolish enough to use such a vocabulary
may be
> considered to get what they deserve if implementations fail to style it.

And the reason they would fail is because a UA would for e.g svg:ellipse
check against ellipse instead of svg:ellipse?

Anyway, I think I have my question answered. the colon ':' is always
reserved for a pseudo class/element


Sigurd Lerstad
Received on Wednesday, 19 February 2003 08:05:29 UTC

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