In the process of building a website, I decided to implement varying CSS styles for desktop and mobile versions. For responsive font sizes on mobile, I opted for vw
units instead of media queries due to the constant changes in mobile screen sizes. However, it appears that Chrome mobile may be exhibiting some buggy behavior specifically with vw
font sizes.
I would appreciate it if you could take a look at these two mobile pages on both Firefox and Chrome:
While Firefox displays the font sizes correctly as expected, Chrome seems to be having issues:
The font sizes appear incorrect throughout the page
The footer font size differs between the two pages (in Firefox, both footers display the same font size)
Could it be possible that Chrome does not handle vw
well?
If this is not simply a coding mistake on my part, I may consider reporting a bug. But before I do so, I would like to get confirmation from others.
For instance, consider the following vw
declaration for the footer:
footer address div {
display: block;
font-size: 3vw !important;
}
This declaration is visible in both browsers' developer tools, suggesting that it is being rendered on both Firefox and Chrome. However, it seems they interpret it differently.
Since the CSS for mobile is unique compared to desktop, please use the mobile device emulation feature in your browser's developer tools when inspecting (for Chrome, refer to https://developers.google.com/web/tools/chrome-devtools/device-mode/)