Follow

Oh hey, I should post this here too! I made a CSS-only async chat by using background-image requests to send data and long-running http requests to return it.

github.com/kkuchta/css-only-ch

@kkuchta Totally made my day. Congrats on the HN high-ranking spot.

@kkuchta oh this was linked in my work chat. They uh.....were surprised xD

@kkuchta javascript is over and humanity is doomed

@kkuchta the only way I think this could be improved is if the chat messages were made entirely of <style> tags that ::before/::after grafted the text onto themselves

@fll Yeah, that was the direct inspiration! I figured if you can send nearly-arbitrary data like that, it should be possible to build a full data transfer pipeline. :)

@kkuchta ... oh.
I read about arcane things being possible with CSS, but still, this is a more impressive hack than I expected.

Does anyone know if there is a sane subset of CSS that isn't able to talk to the world (not really a capability I would expect from a _style sheet_)?

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!