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

[csswg-drafts] [cssom] Should font descriptors and such appear as properties in CSSStyleDeclaration? (#3647)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Feb 2019 11:16:23 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-409246623-1549970182-sysbot+gh@w3.org>
emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] Should font descriptors and such appear as properties in CSSStyleDeclaration? ==
See https://github.com/w3c/csswg-drafts/issues/3588#issuecomment-460019494.

Right now, per spec, they shouldn't:

https://drafts.csswg.org/cssom-1/#cssstyledeclaration says:

> For each CSS property property that is a supported CSS property, the following partial interface applies where camel-cased attribute is obtained by running the CSS property to IDL attribute algorithm for property.

https://drafts.csswg.org/cssom-1/#supported-css-property doesn't say anything about descriptors. And indeed Blink at least returns true for `'unicodeRange' in document.documentElement.style`, which is really weird.

But Blink and WebKit implement this. It feels a bit weird that `'unicodeRange' in document.body.style` would return true... But on the other hand it is weird that `'color' in fontFaceRule.style` would return true as well. So maybe we should expand the concept of "Supported CSS properties" to "Supported CSS properties and descriptors", or something.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3647 using your GitHub account
Received on Tuesday, 12 February 2019 11:16:25 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:57 UTC