dominant-baseline
An SVG property that determines which baseline is used to align text. It's crucial for vertical alignment of text and icons within SVG graphics.
Quick example
text {
/* Aligns SVG text to the middle of the container */
dominant-baseline: middle;
} Quick facts
Initial value
autoInherited
Yes
Applies to
block, flex, and grid containers, inline boxes, table rows, and SVG text content elements
Animation type
discrete
Values
autotext-bottomalphabeticideographicmiddlecentralmathematicalhangingtext-top dominant-baseline Browser Support
Widely available Since 2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
Safe to use without fallbacks.
1+
1+
4+
79+