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

Re: [css3-fonts] FontLoader v2

From: Glenn Adams <glenn@skynav.com>
Date: Tue, 11 Sep 2012 08:47:35 +0800
Message-ID: <CACQ=j+duu9qaJDsnwqYe=18CjuRG5+g32S3Up3KGUjaqqKD_Bg@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: John Daggett <jdaggett@mozilla.com>, www-style list <www-style@w3.org>
On Tue, Sep 11, 2012 at 8:14 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Mon, Sep 10, 2012 at 1:11 AM, John Daggett <jdaggett@mozilla.com>
> wrote:
> > To give this proposal a home, I've added the latest version to the
> > editor's draft of CSS3 Fonts.  We can always move it to a separate
> > spec if necessary.
> >
> >   http://dev.w3.org/csswg/css3-fonts/#font-load-events
>
> Excellent!  The only problem I have with it is one I brought up in v1
> - the "load" and "error" events expose the loaded font via a
> "fontface" attribute.  This means that you have to write, say,
> "event.fontface.style.weight" to get the weight of the loaded font,
> when trying to identify which font was loaded.  My original proposal
> attached all the @font-face descriptors directly to the event object,
> so you'd just write "event.weight".  We don't seem to gain anything by
> the additional indirection, so we should remove it and make things
> easier for authors.
>

Unless we change CSSFontFaceRule to not use CSSStyleDescriptor as a home
for the descriptor set, I would oppose not using the fontface object above.
That is, I don't want to see two interfaces, both CSSStyleDeclaration and
this event object duplicating all the descriptor IDL attributes on
different interfaces. DRY DRY DRY
Received on Tuesday, 11 September 2012 00:48:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT