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

Do these functions make min-width and min-height obsolete? Or is there still any reason to use those instead of min()/max()/clamp()?

Edit: just noticed the articles you linked have nice examples of combining the two (should've read first), and it makes perfect sense since min-width/min-height deal with how elements grow to fit their contents, while something like `width: clamp(...)` would be declaring the width instead.




they don't make them obsolete, but they do make them less important.

Without these functions people probably have more media queries with min-width min-height max-width max-height, with them maybe one or two without media queries is needed.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: