W3C home > Mailing lists > Public > www-style@w3.org > February 2016

[Font Loading] FontFace's Attributes

From: Myles C. Maxfield <mmaxfield@apple.com>
Date: Thu, 04 Feb 2016 00:52:25 -0800
Message-id: <0F97A3B6-7234-4E61-B4EB-82BA3C1C1550@apple.com>
To: www-style@w3.org
[Sorry, sent with correct subject this time]

Hello,
I'm implementing the CSS Font Loading spec in WebKit. During the implementation, I have come across this issue in the spec:

When FontFaces are added to the Document's FontFaceSet, a layout may occur at any time which triggers these FontFaces to be load()ed. This layout uses the FontFace's attributes (family, weight, etc.) to discover which FontFaces need to be load()ed. However, during the load, script may change attributes of these FontFaces so that they no longer match what the layout requires. Instead, modifying FontFace's DOMString attributes should be a no-op (possibly additionally throwing an exception) after the FontFace has been load()ed.

Thanks,
Myles
Received on Thursday, 4 February 2016 08:52:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:00 UTC