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

[css-font-loading] feedback

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 26 May 2014 15:51:34 +0200
Message-ID: <CADnb78hSfUZxwaEzNDxROzcK8AT+zs3D256po3OknFO_oMHhGg@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
Cc: Domenic Denicola <domenic@domenicdenicola.com>
Context: http://dev.w3.org/csswg/css-font-loading/

ready() doesn't seem different from .loaded in how it's used. So we
should make it a property with a getter.

Should FontFaceSource be on the CSS global instead? CSS.fonts rather
than document.fonts in a document environment and self.fonts in a
worker environment.

In the FontFace constructor you set status to "loading" at some point,
but it's not clear from which task or microtask this is done. How can
this be observed?

You say "reject with a NetworkError" but you don't define
NetworkError. Maybe you mean a DOMException whose name is
"NetworkError"? Same for exception/error names mentioned elsewhere.

You need to use the [Exposed] attribute to make sure your interfaces
are actually available in workers. See e.g. URL or Encoding for
examples.


-- 
http://annevankesteren.nl/
Received on Monday, 26 May 2014 13:52:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC