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

Re: [css-font-loading] handling when the FontFaceSet becomes empty

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 7 Jul 2014 14:33:54 -0700
Message-ID: <CAAWBYDCp8w8kMkC0eDekG7bYZwWPZBV=oOXbN2VPGj7t285doA@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Jul 7, 2014 at 2:29 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> On 08/07/14 07:00, Tab Atkins Jr. wrote:
>> I don't recall any specific reasoning, so it's probably accidental.
>> I've changed it accordingly; this also means that the initial value of
>> [[ReadyPromise]] is back to being a pending promise; it'll get
>> fulfilled on load by this algo if you're not loading any fonts.
> If the algorithm runs immediately after the object is constructed, then
> whether [[ReadyPromise]] starts off resolved or not is indistinguishable
> from script.  Is that right?

Nope.  It won't go resolve until after the document has loaded, while
script can set up promise callbacks before load.  If it starts
resolved, those'll get called before load; if it starts pending,
they'll get called after.

Received on Monday, 7 July 2014 21:34:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:44 UTC