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

Re: CSS3 Syntax : or :: ?

From: fantasai <fantasai@escape.com>
Date: Mon, 30 Jun 2003 19:16:32 -0400
Message-ID: <3F00C4D0.3050601@escape.com>
To: www-style@w3.org

Chris Moschini wrote:
> Throughout the new CSS3 documents I've noticed that both
> ::first-letter and :first-letter
> are used in several, several examples. Which is the proper syntax? The latter comes
> from CSS2's pseudo-class syntax. Are they interchangable, both to mean pseudo-class? If
> so, why the introduction of :: ?

The proper syntax is with the double colon; it was changed to make an
explicit distinction between pseudo-classes and pseudo-elements. The
single-colon syntax is acceptable for pre-CSS3 selectors, for backwards-

See http://www.w3.org/TR/css3-selectors/#pseudo-elements

Received on Monday, 30 June 2003 19:15:56 GMT

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