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

Re: [csswg-drafts] [css-fonts] CSSFontFaceRule does not seem Web compatible

From: Simon Sapin via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Apr 2017 06:59:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-296099069-1492757946-sysbot+gh@w3.org>
@foolip I think this is a valid concern.

Additionally, DOM Level 2 is somewhat under-specifed: is says there’s a `style` attribute of type `CSSStyleDeclaration`, but `CSSStyleDeclaration` normally deals with properties (including in its methods’ names) but in this case it should be "monkey-patched" to refer to `@font-face` descriptors instead.

For example `unicode-range` is not a property, but this shows “U+0” in at least Firefox and Chromium:

data:text/html,<style>@font-face{unicode-range: U+0}</style><script>document.write(document.styleSheets[0].cssRules[0].style.getPropertyValue("unicode-range"))</script>

GitHub Notification of comment by SimonSapin
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/825#issuecomment-296099069 using your GitHub account
Received on Friday, 21 April 2017 06:59:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:11 UTC