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

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.

~TJ

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