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

Re: [css-font-loading] values of style, variant, etc. on CSS-connected FontFace objects

From: John Daggett <jdaggett@mozilla.com>
Date: Mon, 30 Jun 2014 01:44:00 -0700 (PDT)
To: www-style@w3.org
Message-ID: <1285601304.3998487.1404117840583.JavaMail.zimbra@mozilla.com>

Cameron McCormack wrote:

> For a FontFace object that is CSS-connected to this rule:
> 
>    @font-face {
>      font-family: Test;
>      src: url(x);
>    }
> 
> what should be returned from any of the IDL attributes that
> correspond to descriptors that weren't specified on the rule?  I
> think either "" or the default value listed in the
> FontFaceDescriptors dictionary (= the initial value for the
> corresponding property).  Probably the latter. 

Default value. These should by definition match the default values for
the corresponding @font-face descriptors.

> (Is it possible for an @font-face rule to be in a style sheet but
> missing a font-family or src descriptor?)

No. An @font-face rule without valid font-family and src descriptors
is a syntax error.

Cheers,

John Daggett
Received on Monday, 30 June 2014 08:44:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC