Re: [csswg-drafts] [css-font-loading-3] Relationship between FontFace and CSSFontFaceRule (#3787)

This was definitely considered! But the ergonomics were real bad when I tried it. It means you get two different "modes" on the object, whether it's connected or not, with different sets of properties active or not depending. Similarly, the different ways of constructing the objects get awkward - FontFace allows construction directly from a TypedArray, but CSSFontFaceRule is purely URL-based, etc. All in all, it just results in a clumsy, footgun-y API that I didn't like, such that the "connected" concept was simply a more reasonable approach.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3787#issuecomment-486496010 using your GitHub account

Received on Thursday, 25 April 2019 02:26:43 UTC