Re: [spec-reviews] CSS Variables (#41)

Getting/setting API is absolutely there - they're *properties*, so you just use the normal property API.  Because of naming, you can't use the easy `style.foo` API, but `style.getPropertyValue()` is an old and well-established API.

Observing changes is indeed difficult, and is being addressed in Houdini <http://drafts.css-houdini.org/css-properties-values-api/>.  Getting Variables out the door required keeping it extremely lean; it was the very first extension point CSS had ever grown!

---
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/spec-reviews/issues/41#issuecomment-122032001

Received on Thursday, 16 July 2015 17:43:38 UTC