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

Re: [csswg-drafts] [cssom] should custom properties be exposed on computed style declarations? (#1316)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 01 Apr 2019 19:35:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-478715488-1554147309-sysbot+gh@w3.org>
The spec should definitely reflect what's currently supported in browsers — `getPropertyValue()` and `setProperty()` and so on.  If there are any parts that still disagree, they need to be updated.

But I'd also be happy to have easier / more familiar ways to access the values. If you've got specific use cases, @stefsullrew, that would definitely help.

E.g, do you need support for `el.style["--my-prop"]` getting and setting? Or as @emilio mentioned, the ability to list out all properties through enumeration?

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1316#issuecomment-478715488 using your GitHub account
Received on Monday, 1 April 2019 19:35:11 UTC

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