monks/ruby_position

The ruby-position CSS property defines the position of a ruby element relative to its base element. It can be positioned over the element (over), under it (under), or between the characters on their right side (inter-character).

Values

pub const alternate: #(String, String)
  • : Is a keyword indicating that the ruby alternates between over and under, when there are multiple levels of annotation.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const inter_character: #(String, String)
  • : When specified, it behaves as over in vertical writing modes. Otherwise, it indicates that the ruby has to be placed between the different characters, appearing on the right of the base in horizontal text and forcing the children of the ruby annotation container to have a vertical-rl writing mode.
pub const over: #(String, String)
  • : Over example Is a keyword indicating that the ruby has to be placed over the main text for horizontal scripts and right to it for vertical scripts.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for ruby-position

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const under: #(String, String)
  • : Under example Is a keyword indicating that the ruby has to be placed under the main text for horizontal scripts and left to it for vertical scripts.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for ruby-position. It will be wrapped in var() and have -- prepended.

Search Document