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

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 UTC