-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cssom] Should font descriptors and such appear as properties in CSSStyleDeclaration? #3647
Comments
I don't think we should keep IIRC, previously when CSS Fonts spec initially introduced this interface, Gecko still has separate Given that I haven't heard any webcompat report regarding Gecko's current behavior on this, I pretty much believe we can move away from this weirdness. I propose that we define a separate interface for I don't propose creating a common interface for |
Maybe @zcorpan has a bit more background on the historical context here? |
I don't know why it is like this. I recall that maybe @tabatkins specified a different design for font descriptors somewhere. This maybe? https://drafts.csswg.org/css-font-loading/#fontface-interface Would it work to return a |
I don't think so unless you duplicate some of the fields with the way they are currently in |
This is effectively a dupe of #5649, given that contains a resolution for this, which essentially boils down to having subtypes of CSSStyleDeclaration where properties and descriptors appear. Closing this as a forward dupe. |
See #3588 (comment).
Right now, per spec, they shouldn't:
https://drafts.csswg.org/cssom-1/#cssstyledeclaration says:
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.Opinions?
The text was updated successfully, but these errors were encountered: