monks/line_break

The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.

Values

pub const anywhere: #(String, String)
  • : There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ character class or mandated by the {{cssxref(“word-break”)}} property. The different wrapping opportunities must not be prioritized. Hyphenation is not applied.
pub const auto_: #(String, String)
  • : Break text using the default line break rule.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const loose: #(String, String)
  • : Break text using the least restrictive line break rule. Typically used for short lines, such as in newspapers.
pub const normal: #(String, String)
  • : Break text using the most common line break rule.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for line-break

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const strict: #(String, String)
  • : Break text using the most stringent line break rule.
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document