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

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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: