- From: Tommy Hodgins via GitHub <sysbot+gh@w3.org>
- Date: Thu, 10 Aug 2017 14:07:50 +0000
- To: public-css-archive@w3.org
I had a little brainstorm about exposing JS properties of elements to CSS via CSS variables so authors can make use of a little more situational awareness when writing styles. I've been toying around with this idea for a while, but this thread about User Agent properties gave me the motivation I needed to get it published :D There are a few fun code examples in the README and on the demo page: https://github.com/tomhodgins/varius#examples I wonder if a value handoff between JS and CSS like this via an interface of CSS variables could help give CSS more power without needing to extend CSS features 🤔 -- GitHub Notification of comment by tomhodgins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1693#issuecomment-321561722 using your GitHub account
Received on Thursday, 10 August 2017 14:08:11 UTC