Your understanding of the W3C references is correct, but your understanding of the red box is not.
The red box does not depict the em-square. Its height is the sum of the ascent and descent from the metrics.
More Related Contents:
- How is font size calculated?
- Font size in CSS – % or em? [duplicate]
- In CSS Flexbox, why are there no “justify-items” and “justify-self” properties?
- Font scaling based on width of container
- Transparent text cut out of background
- Is quoting the value of url() really necessary?
- Are eot, ttf, and svg still necessary in the font-face declaration?
- Same font except its weight seems different on different browsers
- Font Awesome 5 Choosing the correct font-family in pseudo-elements
- How to import Google Web Font in CSS file?
- Wait for fonts to load before rendering web page
- What does the forward slash mean in the CSS font shorthand?
- Is there any “font smoothing” in Google Chrome?
- Downloading a Google font and setting up an offline site that uses it
- How can I determine what font a browser is actually using to render some text?
- Create webfont with Unicode Supplementary Multilingual Plane symbols
- CSS: bolding some text without changing its container’s size
- Webfont Smoothing and Antialiasing in Firefox and Opera
- Webpack “OTS parsing error” loading fonts
- Can a CSS pixel be a fraction?
- Why would font names need quotes?
- Make text height 100% of div?
- Non-Standard fonts in web?
- When setting a font-size in CSS, what is the real height of the letters?
- Font scaling based on size of container
- What is the em font-size unit? How much is it in pixels?
- Font weight turns lighter on Mac/Safari
- How to prevent different browsers rendering fonts differently?
- How do I style a specific word with CSS in an HTML element?
- css different font sizes on different families