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

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 UTC