Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do the people who come up with this syntax spend their whole lives trying to make it as unintuitive as possible?


CSS is designed for typography and layout. It was never designed to render arbitrary geometric shapes - something like SVG should be used for that. This is just clever hacks pushing the box model to its limit.


I don't think that "it was never designed to" and what you should do with a technology necessarily go together. A lot of innovation comes from doing things with technology that it was not originally designed to do. You should be aware that you are beyond the intended purpose, but you should not let that stop you.


Yes, a thousand times yes. I assure you that in the 1970s engineers were telling each other that using 8-bit microprocessors to build “toy” computers was outside of their intended purpose.


It was just an explanation of why the CSS syntax in the examples is ugly. By all means hack away.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: