W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Re: CSS3 Pseudo-elements

From: Etan Wexler <ewexler@stickdog.com>
Date: Tue, 31 Dec 2002 14:59:40 -0500
Message-ID: <1025691466.20021231145940@stickdog.com>
To: www-style@w3.org, Michael Day <mikeday@yeslogic.com>

Michael Day wrote to <www-style@w3.org> on 31 December 2002 in
"CSS3 Pseudo-elements"
(<mid:200212301023.36617.mikeday@yeslogic.com>), quoting the CSS3
Selectors Candidate Recommendation:

>    When the ::first-letter and ::first-line pseudo-elements are
>  combined with ::before and ::after, they apply to the first letter or
>  line of the element including the inserted text.

Then he asked:

> So can multiple pseudo-elements be used in a single selector or not?

Multiple pseudo-elements remain forbidden within a selector.

The prose deals with the case of two selectors, where each has a
pseudo-element and where both select the same element.  The following
rule sets are an example.

element-type::before {
    content: "Prefix. ";
    }
element-type::first-letter {
    font-size: 1.5em;
    }

In this example, the user agent would render the letter "P" in a large
font.

-- 
Etan Wexler <mailto:ewexler@stickdog.com>
Received on Tuesday, 31 December 2002 18:19:09 GMT

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