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

Re: [CSS21] WD 6.1.1, 6.2.1: 'inherit' as specified value

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 22 Mar 2011 09:27:27 -0700
Message-ID: <4D88CDEF.2030504@inkedblade.net>
To: Peter Moulder <peter.moulder@monash.edu>, "www-style@w3.org" <www-style@w3.org>
On 01/07/2011 03:47 PM, Peter Moulder wrote:
> On Fri, Jan 07, 2011 at 09:46:26PM +0100, Anton Prowse wrote:
>> Issue 1: 6.2 Inheritance says:
>>
>>    # When inheritance occurs, elements inherit computed values. The
>>    # computed value from the parent element becomes both the specified
>>    # value and the computed value on the child.
>>
>> This is not the case when the keyword 'inherit' is used, though.  In
>> that case, the specified value is 'inherit', which is never the same
>> as the computed value.
>
> (I'm posting this as a followup because it's much the same issue as Anton
> identifies above.  I wrote this text before Anton posted, so there's a
> little overlap.)
>
> 6.1.1, can specified value be 'inherit':
>
>    I suggest changing 6.1.1 such that the "specified value" is never
>    'inherit'.
>    Various places in the spec talk use the phrase "specified value" as if
>    it meant "specified or default or inherited value as applicable"; I
>    suggest changing the definition to match.
>
>    The phrase "as specified" in "Computed value" fields is the same.
>
>    The only places I know of that take 'inherit' to be a specified value
>    are 6.1.2 para 3, and 6.2.1.
>
>    A somewhat related existing issue that can be addressed as part of
>    this change is the text "As specified" for "Computed value",
>    which is of course intended to mean "equal to the specified value"
>    in the sense above (i.e. never 'inherit').

This is filed as CSS2.1 Issue 259:
   http://wiki.csswg.org/spec/css2.1#issue-259

Proposal -

In 6.1.2 Computed Values remove "When the specified value is not 'inherit',"

In 6.2.1
   # Each property may also have a specified value of 'inherit', which means
   # that, for a given element, the property takes the same computed value
   # as the property for the element's parent. The 'inherit' value can be
   # used to strengthen inherited values, and it can also be used on properties
   # that are not normally inherited.

s/specified/cascaded/
s/computed/specified/
s/strengthen inherited/enforce inheritance of/

~fantasai
Received on Tuesday, 22 March 2011 18:23:58 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT