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

On 03/12/2011 19:07, Anton Prowse wrote:
> 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.

This bug is being tracked at 
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15457

I propose the following change:

   | Except on :before and :after, 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.

Cheers,
Anton Prowse
http://dev.moonhenge.net

Received on Sunday, 8 January 2012 19:38:35 UTC