CSS ruby-position Property Reference
The CSS ruby-position property is a standard property in CSS Ruby. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
ruby-position overview
The CSS ruby-position property is a standard property in CSS Ruby. 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
| Field | Value |
|---|---|
| Formal syntax | [ alternate || [ over | under ] ] | inter-character |
| Initial value | alternate |
| Applies to | rubyAnnotationContainers |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Ruby |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set ruby-position. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
ruby-position: initial;
}
.inherit-example {
ruby-position: inherit;
}
@supports (ruby-position: initial) {
.supported {
ruby-position: initial;
}
}