Quote:
Originally Posted by rjwse@aol.com
CSS will not allow a construction such as (h1 ~ p):first-of-type nor does it do 'first-of-class'. There is a proposed code (not yet implemented) called 'initial-letter' (instead of first-letter). It calculates size and drop automatically. Until it comes out combinators rule the day! Best regards, Pop
|
You are making a mistake. All those selectors are valid. About the pseudo-elements, this is their valid scope:
first-letter, first-line - CSS 2
first-of-type - CSS 3
And, about the 'initial-letter' property, as you said, it is only proposed on a Draft for CSS 3.
You can check out other selectors
here.