W3C home > Mailing lists > Public > www-style@w3.org > November 2003

Ambiguities in using 'inherit' in 'font' shorthand

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 26 Nov 2003 01:10:24 +0200 (EET)
To: www-style@w3.org
Message-ID: <Pine.GSO.4.58.0311260103310.6321@korppi.cs.tut.fi>

I recently noticed that there seems to be an ambiguity in CSS when the
value 'inherit' is used for a component of the 'font' shorthand
in the optional part.

With regard to how 'font' is defined,
http://www.w3.org/TR/REC-CSS2/fonts.html#font-shorthand
(or the corresponding part in the CSS 2.1 draft),
consider the declaration

font: inherit 100% Arial;

Does 'inherit' set font-style, or font-variant, or font-weight? They are
allowed in any order, and they are all optional, so which one is it?

Am I missing something? It seems to me that this problem cannot be solved
without disallowing 'inherit' in such cases.

(The background for my observation is the recent Usenet thread starting at
news:bpu34q$uap$1@online.de )

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 25 November 2003 18:10:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:25 GMT