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

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

From: Glenn Adams <glenn@skynav.com>
Date: Fri, 19 Sep 2014 19:36:13 +0200
Message-ID: <CACQ=j+ef6Z8WDEu+83j55bZmw4bnqex6Ethpkf7txXGA=1c9Lg@mail.gmail.com>
To: Shawn Ligocki <sligocki@google.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style <www-style@w3.org>
For legacy purposes, I believe the @charset ruleset must be first.

On Fri, Sep 19, 2014 at 7:23 PM, Shawn Ligocki <sligocki@google.com> wrote:

> 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:37:03 UTC

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