My goal is to ensure my website appears consistent on all screen sizes by default, while still allowing users to zoom in and out freely. However, I've encountered challenges with using percentages or vh/vw units, as they don't scale elements properly when zoomed. On the other hand, using px/rem/em units results in varying element sizes based on user's display resolution.
An ideal solution would be a unit of measurement that maintains proportional sizing relative to screen size (similar to vw/vh/percentage), yet also scales appropriately when users zoom. This approach would ensure uniformity across devices by default, while offering customization through zoom functionality.
Unfortunately, CSS does not currently offer such a unit of measurement [3]. It is also challenging to implement in SASS, and browser support for detecting zoom levels in JavaScript is limited [1], [2]. The absence of this technique is perplexing, given its potential to revolutionize web design: providing uniform defaults for all users, while enabling individualized customization.