News for hackers. Stuff that matters.
Re:CSS Variables landing in Chrome 49 by ape4 on Sunday February 07, 2016 @05:29PM (#11055257)
Is there a way to access it from javaScript? Can JS code set CSS --color and make it change.
Re:CSS Variables landing in Chrome 49 by saulr on Sunday February 07, 2016 @05:50PM (#11055354)
It looks like this can be changed with `setProperty`. There's a demo[1] that works on Firefox 31+ and Chrome 49+

[1] https://www.broken-links.com/2014/08/28/css-variables-updati...

Re:CSS Variables landing in Chrome 49 by ape4 on Sunday February 07, 2016 @06:10PM (#11055447)
Thanks. I wonder if it could be creatively misused to act as a database.
Re:CSS Variables landing in Chrome 49 by pygy_ on Sunday February 07, 2016 @05:46PM (#11055337)
Yes, it's mentioned in the article.