W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

Re: [csswg-drafts] [css-font-loading-3] Unclear how to parse font families (#3776)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 04 Apr 2019 20:59:03 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-480061384-1554411542-sysbot+gh@w3.org>
@emilio The only difference is that FontFace implicitly assumes that what it's been passed is a literal string, and will reflect its contents directly, while the associated CSSFontFaceRule will reflect it as a string token if necessary, right?

That is, constructing a `FontFace("4em")` will have FontFace.family return `"4em"`, while the corresponding CSSFontFaceRule.fontFamily returns `'"4em"'`, right? But `FontFace("foo bar")` will return `"foo bar"` for both.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3776#issuecomment-480061384 using your GitHub account
Received on Thursday, 4 April 2019 20:59:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:06 UTC