- From: Etan Wexler <ewexler@stickdog.com>
- Date: Tue, 31 Dec 2002 14:59:40 -0500
- 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 UTC