W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css3-fonts][cssom] Load events for webfonts?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 24 Jul 2012 13:25:10 -0700
Message-ID: <CAAWBYDByubTGrwDPuHwDx20nimbCWDjtgQO-Zb=0QC1DXn-xFg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org, Cameron McCormack <cam@mcc.id.au>
On Tue, Jul 24, 2012 at 12:08 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 7/24/12 2:51 PM, Tab Atkins Jr. wrote:
>> For each attribute, if the corresponding descriptor is present in the
>> associated @font-face rule, the attribute's value is the cssText of that
>> descriptor.  Otherwise, the attribute's value is the value undefined.
>
> The value, or the string?
>
> If you actually want the _value_ (as in, pretend like the getter didn't return anything), the IDL can't say DOMString...
>
> It might be interesting to have a way to say in WebIDL "this thing or undefined" just like it can say "this string or null".

I was thinking the value.  The string is a valid value for several of
the descriptors.  ^_^

I just talked to heycam (we're both sitting around a table at the SVG
f2f), and he's okay with adding undefined as a type, so I can make
them unions.

~TJ
Received on Tuesday, 24 July 2012 20:25:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:57 GMT