Re: [css-fonts] ready attribute vs function

On Tue, Oct 6, 2015 at 2:42 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> Can you point out where in the spec that is defined? I can't find any text
> that says that the ready() promise is fulfilled when all fonts are loaded
> and applied to the layout.

It's in the algorithms in
<https://drafts.csswg.org/css-font-loading/#FontFaceSet-events>.
Those algorithms are the only things in the entire spec that touch the
[[ReadyPromise]] slot.  Note also the definition of "pending on the
environment", and where it's invoked in the algorithms.

~TJ

Received on Tuesday, 6 October 2015 21:45:25 UTC