monks/text_spacing_trim

{{seecompattable}}

The text-spacing-trim CSS property controls the internal spacing set on Chinese/Japanese/Korean (CJK) punctuation characters between adjacent characters (kerning) and at the start or end of text lines.

Values

pub const auto_: #(String, String)

auto value of text-spacing-trim

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const normal: #(String, String)
  - : Sets CJK full-width opening punctuation characters to be full-width at the start of each line. Sets CJK full-width closing punctuation characters to be full-width at the end of each line, or half-width if they do not fit on the line before justification. [Collapses spacing](#full-width_punctuation_collapsing) between punctuation characters.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-spacing-trim

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const space_all: #(String, String)
  - : All CJK full-width punctuation characters are set to be full-width.
pub const space_first: #(String, String)
  - : Behaves as `normal`, except that CJK full-width opening punctuation characters are set to be full-width at the start of the first line of the text's block container, and the start of every subsequent line coming after an explicit line break such as a newline character.
pub const trim_all: #(String, String)

trim-all value of text-spacing-trim

pub const trim_both: #(String, String)

trim-both value of text-spacing-trim

pub const trim_start: #(String, String)
  - : Behaves as `normal`, except that CJK full-width opening punctuation characters are set to be half-width at the start of each line.    > [!NOTE]    > The [CSS Text](/en-US/docs/Web/CSS/Guides/Text) module also defines `trim-both`, `trim-all`, and `auto` values. However, these are not currently implemented in any browser.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document