the only headache is when you have to support older browsers that don't recognize the function, though that's becoming less of a concern these days. i usually pair this with a
calc()
fallback for safety in my legacy projects.
accessibility notejust be careful not to rely
exclusively on viewport units for the preferred value. if a user zooms in, some browsers struggle to scale text correctly if there's no static unit like
rem
mixed into that middle value. adding a small
rem
component helps ensure the type scales properly with browser zoom settings.
>it prevents the "tiny text" trap on mobile zooms