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

[css3-fonts] Mistakes in font value syntax

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Thu, 21 Jul 2011 18:01:27 +0200
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.vyy74pj0bunlto@oyvinds-desktop>
1. The font-variant part of the 'font' shorthand has been defined as

<font-variant-css21> = [normal | small-caps | inherit]

which means it allows things like

font: inherit large Ahem;

This is inconsistent with other shorthand properties and the other  
component values in 'font', and seems like a mistake.

2. The <‘font-family’> link points to the font descriptor's definition  
(#descdef-font-family), which only accepts a single <family-name>. It  
should point to the property's definition (#font-family-prop) instead.

The same applies to the <‘font-weight’> link (descriptor doesn't accept  
'bolder' or 'lighter') and <‘font-style’> (seems to make no difference).

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Thursday, 21 July 2011 16:01:56 GMT

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