W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css21] Wrong font-family syntax

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Thu, 10 May 2012 21:25:03 +0800
Message-ID: <4FABC1AF.9020608@csail.mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: WWW Style <www-style@w3.org>
(12/05/10 21:19), Tab Atkins Jr. wrote:
> On Thu, May 10, 2012 at 3:01 PM, √ėyvind Stenhaug <oyvinds@opera.com> wrote:
>> The "Value" entry for 'font-family' currently says
>>
>> [[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]* ]
>> | inherit
>>
>> which is wrong since any instance of <generic-family> in the middle or end
>> of the list will not get an immediately-preceding comma. It should be
>> something like
>>
>> [ [ <family-name> | <generic-family> ] [,[ <family-name> | <generic-family>
>> ]]* ] | inherit
> 
> Or:
> 
> [ <family-name> | <generic-family> ]#
> 
> This comma problem is the whole reason we added the # multiplier.  ^_^

If possible, I think we should also include '#' in 1.4.2.1[1]. All
'background-*' in CSS3 B&B could have used this syntax if '#' had been
in CSS 2.1.

[1] http://www.w3.org/TR/CSS21/about.html#value-defs


Cheers,
Kenny
Received on Thursday, 10 May 2012 13:25:34 GMT

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