W3C home > Mailing lists > Public > www-style@w3.org > September 2014

Re: [css-fonts] Does @font-face v. ruleset order matter?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 25 Sep 2014 10:57:30 -0700
Message-ID: <CAAWBYDBaA07d=Wwsv+YAte7mMVp_=UobgGMyivm8oUeBRvwLmg@mail.gmail.com>
To: John Daggett <jdaggett@mozilla.com>
Cc: Shawn Ligocki <sligocki@google.com>, www-style <www-style@w3.org>
On Wed, Sep 24, 2014 at 6:30 PM, John Daggett <jdaggett@mozilla.com> wrote:
> Tab Atkins wrote:
>> Relative ordering of @font-face and normal rules makes no difference
>> to the use of those font faces; CSS is a properly declarative
>> language, and doesn't have that sort of ordering dependence between
>> resources and links.
>>
>> Since you don't care about preserving the overall stylesheet order,
>> feel free to reorganize the @font-face rules, or stash them in a
>> separate stylesheet.
>
> The order of @font-face rules relative to style rules doesn't
> matter. The relative order of @font-face rules *does* matter since
> it influences the order in which fonts are loaded.

Yup, that's what I was talking about.  Apologies if it was unclear,
but it appears that Shawn got what I intended.  (They'd already
expressed in the OP that they're aware the relative ordering of
@font-face rules with each other is important to preserve.)

~TJ
Received on Thursday, 25 September 2014 17:58:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:46 UTC