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 ~fantasaiReceived 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