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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 13 Nov 2008 10:38:49 +1100
To: www-style@w3.org
Message-ID: <20081112233849.GA23429@arc.mcc.id.au>

Håkon Wium Lie:
> One arguement for (B) is that Prince has implemented it this way and
> that it uses it in the default style sheet:
> 
>   @font-face {
>     font-family: sans-serif;
>     src: local("Arial"), local("Helvetica"), local("OpenSymbol"), local("DejaVu Sans")
>   }

Since the font-family descriptor takes a <family-name>, won’t this only
have an effect if the 'font-family' property selects a font named
"sans-serif" and not if the generic family name sans-serif is used?

  @font-face {
    font-family: sans-serif;
    src: local("Arial"), local("Helvetica"), …
  }
  #a { font-family: sans-serif }    /* whatever the UA sans serif font is */
  #b { font-family: "sans-serif" }  /* matches the @font-face above */

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 12 November 2008 23:39:37 GMT

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