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

"and there are no compilers to tell you which combinations don't make sense"

well thats not quiet true, in purescript you can write type-safe CSS checked at compile time

https://pursuit.purescript.org/packages/purescript-css/3.3.0...



Does it tell you that align-items by itself doesn’t make sense regardless of the value, of the element isn’t otherwise set to use display: flex or grid?


I don't know the answer, but I'd be surprised if it did.

I've also been very frustrated by CSS due to 1) its lack warnings and debug errors as mentioned above, and 2) that so many properties have side-effects (like setting an element to display:flex changes the auto value of min-width for all its children[1]).

I've started working on something to help with this, but it's a long way off (and it may not work at all).

[1] https://www.w3.org/TR/css-flexbox-1/#min-size-auto




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: