- From: Cameron McCormack <cam@mcc.id.au>
- Date: Sun, 21 Sep 2014 18:29:31 +1000
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: "www-style@w3.org" <www-style@w3.org>
Cameron McCormack: >> Why are the descriptors parsed asynchronously anyway? Tab Atkins Jr. : > Because I was rejecting the promise when they were wrong, so it seemed > better to just go ahead and do all of the work async. However, it > seems not worth the trouble now, or really necessary. I've moved the > parsing up into the sync section instead. Thanks, but this still doesn't resolve the issue of what values these properties have before they are set -- and this is because they are only set if all of them parse correctly. I think the text is also unclear about whether family is set if one of the descriptors in the dictionary argument failed to parse. What do all of these alert? alert(new FontFace("ABC", "url(x)", { style: "x" }).style); alert(new FontFace("ABC", "url(x)", { style: "x" }).family); alert(new FontFace("'", "url(x)").style); alert(new FontFace("'", "url(x)").family);
Received on Sunday, 21 September 2014 08:29:46 UTC