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

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