[CSS3 Content] correcting an example

<http://www.w3.org/TR/css3-content/#inserting2>

> The following style sheet puts opening quotation marks on every  
> paragraph in a BLOCKQUOTE, and inserts a single closing quote at  
> the end:
> BLOCKQUOTE P:before     { content: open-quote }
> BLOCKQUOTE P:after      { content: no-close-quote }
> BLOCKQUOTE P.last:after { content: close-quote }
>
> This relies on the last paragraph being marked with a class "last",  
> since there are no selectors that can match the last child of an  
> element.

Since CSS3-selector has very high probability of being released  
before CSS3 Content, the example should be changed to

> The following style sheet puts opening quotation marks on every  
> paragraph in a BLOCKQUOTE, and inserts a single closing quote at  
> the end:
> BLOCKQUOTE P:before     { content: open-quote }
> BLOCKQUOTE P:after      { content: no-close-quote }
> BLOCKQUOTE P:last-child:after { content: close-quote }

<http://www.w3.org/TR/css3-selectors/#last-child-pseudo>

(I am not sure if it is possible to chain pseudo-classes and pseudo  
elements [:last-child:after])

-- 
</david_latapie>
http://blog.empyree.org/   U+0F00

Received on Thursday, 28 September 2006 16:15:52 UTC