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

Re: [css-fonts] defining font faces with an empty or white space only family name

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Jul 2014 15:09:23 -0700
Message-ID: <CAAWBYDAS7aBqJKsd2OvPED_ejHKzCxi5EFTc-+Ho3GyFBtM8sw@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: "www-style@w3.org" <www-style@w3.org>
On Fri, Jul 4, 2014 at 10:16 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> I don't think the css-fonts specification says anything special about using
> a font family name of "" or " " when using @font-face.  Should either of
> these be disallowed?
>
> http://mcc.id.au/temp/emptyfamily.html
>
> Firefox, Chrome and Safari support " " while IE does not.  None of these
> browsers support "".

>From the spec:

# Font family names other than generic families must either be given quoted
# as strings, or unquoted as a sequence of one or more identifiers.

So an empty string is not a valid <family-name>.

~TJ
Received on Monday, 7 July 2014 22:10:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC