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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 23 Apr 2012 14:55:29 -0700
Message-ID: <CAAWBYDB4r_0H6xhgxPDzeSq2KwLnJvTG0wXM5=7PQiTFCb3qJw@mail.gmail.com>
To: www-style list <www-style@w3.org>
Right now, 2.1 says the following about using 'inherit' in a font name:

# The keywords 'initial' and 'default' are reserved for
# future use and must also be quoted when used as
# font names.

This isn't strict enough, and implementations do somewhat different
things around this.  See Kenny's email at
<http://lists.w3.org/Archives/Public/www-style/2012Apr/0080.html>
where he shows several differences in implementations, where some UAs
accept 'inherit' as part of a font-name, or even as an entire
font-name in some circumstances.

We propose tightening this up, since there's no use-case for using
unquoted 'inherit' in a font name, to:

> The keywords 'initial' and 'default' are reserved for
> future use and must also be quoted when used _in_
> font names.

~TJ and fantasai
Received on Monday, 23 April 2012 21:56:19 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:13 UTC