Re: [css21] 'font-family' should disallow 'inherit' in font names more strictly

(12/04/25 1:04), Kang-Hao (Kenny) Lu wrote:
> (12/04/25 0:23), "Gérard Talbot" wrote:
>> Le Mar 24 avril 2012 5:30, Kang-Hao (Kenny) Lu a écrit :
>>> (12/04/24 14:02), John Daggett wrote:
>>>> Tab Atkins Jr. wrote:
>>
>>>>>> The keywords 'initial' and 'default' are reserved for
>>>>>> future use and must also be quoted when used _in_
>>>>>> font names.
>>>>
>>>> This is equally imprecise, it implies that only the keywords are
>>>> quoted when what you mean to say is that font family names
>>>> *containing* these keywords must be quoted.
>>>
>>> Either that or
>>>
>>>   | unquoted global keywords ('inherit', 'initial' and 'default') are
>>>   | not allowed inside <family-name>.
>>
>>
>> div {font-family: inherit;}
>>
>> is allowed, is valid, is permitted and is tested:
> 
> Well, I said "inside <family-name>", so if the "Value:" field is
> "<family-name> | inherit", even if 'inherit' doesn't match <family-name>
> because of proposed wording, it still matches the right hand side.
> 
> Having said that, since you found this confusing, what about
> 
>   | unquoted global keywords ('inherit', 'initial' and 'default') are
>   | not allowed when parsed as <family-name>.
> 
> ?

I meant to say s/when parsed as <family-name>/when parsing <family-name>/


Cheers,
Kenny

Received on Tuesday, 24 April 2012 17:11:19 UTC