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

RE: [CSS21] system font keywords as font families

From: John Jansen <John.Jansen@microsoft.com>
Date: Fri, 11 Mar 2011 00:09:03 +0000
To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
CC: Gérard Talbot <bugzilla@gtalbot.org>
Message-ID: <C340671BECD4364E8F9EBA27E8E231322DF736B7@DF-M14-05.exchange.corp.microsoft.com>


> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
> Behalf Of fantasai
> Sent: Monday, October 25, 2010 12:35 AM
> To: www-style@w3.org
> Cc: Gérard Talbot
> Subject: [CSS21] system font keywords as font families
> 
> Gérard points out that the spec could use some clarification on this point:
> 
> >> On Friday 2010-10-15 14:26 -0700, "Gérard Talbot" wrote:
> >>> "
> >>> System fonts may only be set as a whole; that is, the font family,
> >>> size, weight, style, etc. are all set at the same time. These values
> >>> may then be altered individually if desired.
> >>> "
> >>
> >> The test is not specifying a system font.  It's specifying a
> >> font-family for a font named 'caption'.
> >>
> >>> So, font: 32px caption;
> >>> is wrong and invalid. The parsing system would not know which font
> >>> size to use: 8px (usually the default font size for caption) or 32px.
> >>
> >> The font-size for the caption system font isn't relevant, because
> >> this isn't specifying a system font.  It's specifying a font-family
> >> called 'caption'.
> >
> >
> > David,
> >
> > I understand very well what you are saying. But there is definitely a
> > potential source of confusion.
> >
> > "
> > Font family names that happen to be the same as a keyword value
> > ('inherit', 'serif', 'sans-serif', 'monospace', 'fantasy', and
> > 'cursive') must be quoted to prevent confusion with the keywords with
> > the same names.
> > "
> >
> > But such escape mechanism does not apply to system font keywords:
> > caption, icon, menu, message-box, small-caption and status-bar. You're
> > saying it does not need to as it can be self-consistent here.
> > Depending on the declaration by itself, the CSS parsing should be able
> > to figure out if, say, caption is a system font reserved name or a
> > font type name correctly being declared and this, without caption being
> quoted.
> 
> 
Hi,

Thank you for your feedback. The CSSWG resolved not to make these changes to the CSS 2.1 specification[1]. We will be reevaluating this issue for errata and future versions of CSS.

Please respond before 14 March, 2011 if you do not accept the current resolution.

[1] http://w3.org/TR/CSS
Received on Friday, 11 March 2011 00:09:38 GMT

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