monks/text_combine_upright

The text-combine-upright CSS property sets the combination of characters into the space of a single character. If the combined text is wider than 1em, the user agent must fit the contents within 1em. The resulting composition is treated as a single upright glyph for layout and decoration. This property only has an effect in vertical writing modes.

This is used to produce an effect that is known as tate-chū-yoko 縦中横 in Japanese, or as 橫向文字 in Chinese.

Values

pub const all: #(String, String)
  • : Attempts to typeset all consecutive characters within the box horizontally, such that they take up the space of a single character within the vertical line of the box.> [!NOTE]> The CSS writing modes module defines a digits <integer> value for the text-combine-upright property to display two to four consecutive {{Glossary(“ASCII”)}} digits (U+0030–U+0039) such that it takes up the space of a single character within the vertical line box, however, this is not supported in any browsers.
pub const digits: #(String, String)

digits value of text-combine-upright

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : There is no special processing.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-combine-upright

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document