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.
As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css baseline-shift
for further information.
Categories | Presentation attribute |
---|---|
Value | auto | baseline | super | sub | <percentage> | <length> | inherit |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
line-height
of the <text>
element. The dominant-baseline is shifted in the shift direction (positive value) or opposite to the shift direction (negative value) of the parent text content element by the resulting value. A value of "0%" is equivalent to "baseline".TBD
The following elements can use the baseline-shift
attribute
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/baseline-shift