4 ms·
I can't wait to do JS-in-CSS-in-JS!
by bshimmin 5y ago
I can't wait to do JS-in-CSS-in-JS!
- _Microft 5y ago... running in the sandbox of a browser in a VM and getting streamed to your local PC from a super-computer in the cloud.
- fallat 5y agoAren't we in a Mighty exciting time!
- jrochkind1 5y agoThe Houdini APIs are not really about "JS in CSS". They are about extending CSS features (like adding new features to CSS, new keywords or what have you) by providing a JS implementation at runtime.
- ihuman 5y agoBut you can use it to write JS in CSS and then eval it (although you probably shouldn't) https://css-houdini.rocks/js-in-css https://css-houdini.rocks/js-in-css (only works in Chrome)
- jrochkind1 5y agoOK, good point! And neat demo, thanks! I guess if you can add features to CSS, you can add a feature to have evaluatable JS! And that is a pretty neat demo. It is not the main targeted use case of Houdini though! (And I'm gonna go out on a limb and say the Houdini devs would say it's a bad idea as more than a cool toy!)