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

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

From: Shawn Ligocki <sligocki@google.com>
Date: Fri, 19 Sep 2014 13:23:42 -0400
Message-ID: <CACNG_47jv-f36=o5pzAj=kiTLWw=uQ-UpKNbT4b4qhVNgOTK=w@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style <www-style@w3.org>
On Fri, Sep 19, 2014 at 12:59 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 9/19/14, 12:49 PM, Shawn Ligocki wrote:
>
>> But this would only be safe if the relative order
>> doesn't matter between @font-face rules and rulesets. Otherwise, we'd
>> need to preserve the original ordering.
>>
>
> You need to preserve it anyway for the CSSOM.

In our case, our code is modifying existing CSS and re-serializing. So we
will be altering the CSS Object Model already. So I suppose my question is,
if I move all the @font-face rules before all rulesets, will that change
their meaning for browsers? Or are the equivalent aside from the CSSOM
difference.
Received on Friday, 19 September 2014 17:24:29 UTC

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