monks/text_wrap_mode

The text-wrap-mode CSS property controls whether the text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the {{CSSXRef(“text-wrap”)}} shorthand or the {{CSSXRef(“white-space”)}} shorthand.

The {{CSSxRef(“white-space-collapse”)}} and text-wrap-mode properties can be declared together using the {{CSSxRef(“white-space”)}} shorthand property.

The name of this property is a placeholder, pending the CSSWG finding a better name.

Values

pub const auto_: #(String, String)

auto value of text-wrap-mode

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const nowrap: #(String, String)
  • : Text does not wrap across lines. It will overflow its containing element rather than breaking onto a new line.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for text-wrap-mode

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-wrap-mode. It will be wrapped in var() and have -- prepended.

pub const wrap: #(String, String)
  • : Text is wrapped across lines at appropriate characters (for example spaces, in languages like English that use space separators) to minimize overflow. This is the default value.
Search Document