- From: fantasai <fantasai@escape.com>
- Date: Mon, 30 Jun 2003 19:16:32 -0400
- 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- compatibility. See http://www.w3.org/TR/css3-selectors/#pseudo-elements ~fantasai
Received on Monday, 30 June 2003 19:15:56 UTC