files/en-us/web/svg/reference/attribute/baseline-shift/index.md
The baseline-shift attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. The shifted object might be a sub- or superscript.
[!NOTE] As a presentation attribute,
baseline-shiftalso has a CSS property counterpart: {{cssxref("baseline-shift")}}. When both are specified, the CSS property takes priority.
[!NOTE] This property is going to be deprecated and authors are advised to use {{cssxref("vertical-align")}} instead.
You can use this attribute with the following SVG elements:
sub
super
<length-percentage>
: A length value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified length.
A percentage value raises (positive value) or lowers (negative value) the dominant-baseline of the parent text content element by the specified percentage of the {{cssxref("line-height")}}.
{{Specifications}}
{{Compat}}