Re: [css-font-loading] clarifying what happens to a CSS-connected FontFace when the rule is removed

On Mon, Sep 29, 2014 at 12:02 AM, John Daggett <jdaggett@mozilla.com> wrote:
> Cameron McCormack wrote:
>> When an @font-face rule is removed from the document, its FontFace
>> object is removed from the FontFaceSet (per
>> http://dev.w3.org/csswg/css-font-loading/#document-font-face-set).
>> I think it would be good to explicitly mention in the last paragraph of
>> http://dev.w3.org/csswg/css-font-loading/#font-face-css-connection
>> that the FontFace object can stick around due to the author
>> holding a reference to it, even though it is no longer in the
>> FontFaceSet.
>
> I think the spec also needs to clearly indicate how object deletion
> affects promise resolution. For example, if the underlying
> @font-face rule is deleted, are load promises resolved with an abort
> error?

The spec doesn't specify anything like that, so no, a pending load
continues until completion or error as normal.  Should this be
changed?

~TJ

Received on Monday, 29 September 2014 19:02:27 UTC