CSS text-anchor Property Reference

The CSS text-anchor property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

CSS text-anchor Property Reference

The CSS text-anchor property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

text-anchor overview

The CSS text-anchor property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

text-anchor formal syntax
FieldValue
Formal syntaxstart | middle | end
Initial valuestart
Applies tolimitedSVGElementsTextContent
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

These declarations demonstrate valid ways to set text-anchor. The initial and inherit global keywords remain available even when a property-specific value is preferable.

text-anchor live example
CSS .reset-example { text-anchor: initial; } .inherit-example { text-anchor: inherit; } @supports (text-anchor: initial) { .supported { text-anchor: initial; } }

Description

The CSS text-anchor property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: text-anchor
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies