HTML & CSS · Senior · Question 51 of 75
What does font-size: 5cqi mean inside a container query?
- ✓Correct answer: 5% of the query container's inline size, so the text scales with the component, not the viewport
- 25% of the viewport width
- 35 times the root font size
Explanation
Container query units (cqw, cqh, cqi, cqb) resolve against the nearest container with container-type. A card can then size its typography for wherever it is placed.