CSS anchor-name Property Reference

The CSS anchor-name property is a experimental property in CSS Anchor Positioning. Review its formal syntax, computed behavior, and practical declarations.

CSS anchor-name Property Reference

The CSS anchor-name property is a experimental property in CSS Anchor Positioning. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

anchor-name overview

The CSS anchor-name property is a experimental property in CSS Anchor Positioning. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

anchor-name formal syntax
FieldValue
Formal syntaxnone | <dashed-ident>#
Initial valuenone
Applies toallElementsThatGenerateAPrincipalBox
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Anchor Positioning
StatusExperimental

Practical examples

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

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

Description

The CSS anchor-name property is a experimental property in CSS Anchor Positioning. Review its formal syntax, computed behavior, and practical declarations.

References

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

Similar or alternative tools

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