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

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 UTC