Hacker News new | past | comments | ask | show | jobs | submit login

I'm totally down for some good old fashioned impractical hacking. But just remember, we already have canvas, which can do all this easier, faster, and better.



But with less comedic value. Doing this with nothing but box-shadow is funny, mostly because it is so impractical.


Canvas throws away a lot though, especially w accessibility


now I'm imagining a screen reader reading off the coordinates of 1000 box shadows


You could probably get it to png encode a canvas and then read it in hex too.


Really? I would have guessed that canvas provides pretty much exactly the same accessibility as a UI rendered entirely out of box shadows.


Canvas is better...if you're trying to do something that stays within a fixed-size box.


Canvas would still be faster even if you used a full-screen box. Just the string concatenation overhead of doing this with box-shadows is insanely wasteful.

Which isn't to demerit the hackish creativity of taking one thing and running with it! But if you wanted to do a ball painting effect like that outside this "what if" context, it would be technically irresponsible to do it with box-shadows.


Sure, and we already have keyboards, so there's no need to use floppy drives or rubber chickens to make music either.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: