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

Never use viewport-relative units (like vw) for text sizing, it is not a best practice for accessibility (part of the reason it's not in the examples here).

Modern browsers handle zoom just fine, regardless of units. We use rem in case a user has set their own preferred base text size (the same reason we don't use viewport-relative units).



That's why it's rem + vw, to prevent accessibility problems


The vw introduces the accessibility bug. Your can add whatever other units to it you like, the issues remain.


What accessibility bug is that? Adding the other unit is specifically so the issues do not remain.




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

Search: