W3C home > Mailing lists > Public > www-style@w3.org > October 2010

[css3-fonts] where @font-face may appear

From: Zack Weinberg <zackw@panix.com>
Date: Thu, 28 Oct 2010 12:32:14 +0000
Message-ID: <AANLkTikEF1HjSb1pu-yJwDEePLoo5z7xkR78pFHLxFX0@mail.gmail.com>
To: www-style@w3.org, John Daggett <jdaggett@mozilla.com>
css3-fonts doesn't say anything about whether @font-face rules are
required to appear in a particular position in a stylesheet (as is the
case for e.g. @charset and @import), nor does it say which style rules
can make use of family names defined by @font-face rules.

Since the font matching algorithm happens after value computation, I
see no technical reason why @font-face rules should be restricted to
appear (e.g.) before all style rules, or before all style rules that
use the family name they define, within a single style sheet.

I could make a case for family names defined by @font-face not being
visible to other style sheets in a document, but I think they
definitely should be visible in both directions across an @import.

Regardless of the decision this should be spelled out explicitly in css3-fonts.

zw
Received on Thursday, 28 October 2010 14:02:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:33 GMT