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

Re: [css3-fonts] duplication and @font-face rules

From: John Daggett <jdaggett@mozilla.com>
Date: Tue, 11 Nov 2008 23:12:14 -0800 (PST)
To: Michael Day <mikeday@yeslogic.com>
Cc: www-style@w3.org, "L. David Baron" <dbaron@dbaron.org>
Message-ID: <12883696.96411226473934399.JavaMail.root@cm-mail01.mozilla.org>

> It allows you to define font families with intelligent fallback:
> 
> @font-face {
>      font-family: MyFont;
>      src: local("Times New Roman"), local("OpenSymbol"), ...
> }
> 
> In the Prince default style sheets we actually use this to predefine the 
> default font families such as "serif" and "sans-serif".

So 

  body { font-family: MyFont; }
  
is just an alias for

  body { font-family: "Times New Roman", "OpenSymbol"; }
  
Wouldn't CSS variables be more appropriate in this case?

John Daggett
Mozilla Japan
Received on Wednesday, 12 November 2008 07:12:55 GMT

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