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

Re: [CSS21][12.2 The 'content' property] computed value on :first-line and :first-letter

From: Anton Prowse <prowse@moonhenge.net>
Date: Sat, 03 Dec 2011 19:07:56 +0100
Message-ID: <4EDA657C.90501@moonhenge.net>
To: www-style@w3.org
CC: Simon Sapin <simon.sapin@kozea.fr>
On 30/11/2011 18:15, Simon Sapin wrote:
> Hi,
> In CSS 2.1, the computed value of the 'content' property is defined as:
> """
> On elements, always computes to 'normal'. On :before and :after, if
> 'normal' is specified, computes to 'none'. Otherwise, for URI values,
> the absolute URI; for attr() values, the resulting string; for other
> keywords, as specified.
> """
> The computed value on other pseudo-elements (ie. :first-line and
> :first-letter) is not defined. I suggest changing the first sentence to:
> """
> On elements, :first-line or :first-letter, always computes to 'normal'.
> """
> At least in CSS 2.1, properties can only be applied to elements or
> pseudo-elements; and only these four pseudo-elements exist. So this
> should covers all cases.

In CSS21, "elements" is very often intended to mean "elements and 
pseudo-elements", but I agree that this isn't so obvious in the 
paragraph in question because the prose treats :before and :after as if 
they were not members of the previously-mentioned set.

This issue may be considered for errata.

Anton Prowse
Received on Saturday, 3 December 2011 18:08:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:11 UTC