My understanding is that the "vw" units in CSS refer to 1% increments of the viewport width.
However, when I create a mono-spaced font that is supposed to be 10% of the viewport width, it winds up closer to ~6% (1/16):
<div style="width: 100%; background: green; color: white; font-size: 10vw; font-family: monospace;">
123456789012345670
</div>
If I use a font that is not monospace it not quite as bad, but it is still off:
<div style="width: 100%; background: green; color: white; font-size: 10vw; font-family: serif;" id="test8">
MMMMMMMMMMMMMMMMMMMM
</div>
I am using "M" as this is the typical "widest character" in any font. In this case I see 11 characters, so each one is about 9% of the viewport width. This is still off by 10%.
So what gives? What does "vw" actually mean when used with font size, especially when each character has the same width?