monks/text_wrap_style
The text-wrap-style CSS property controls how 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.
Values
pub const auto_: #(String, String)
- : Text is wrapped in the most performant way for the browser and does not take into account the number of characters.
pub const balance: #(String, String)
- : Text is wrapped in a way that best balances the number of characters on each line, enhancing layout quality and legibility. Because counting characters and balancing them across multiple lines is computationally expensive, this value is only supported for blocks of text spanning a limited number of lines (six or less for Chromium and ten or less for Firefox).
pub const pretty: #(String, String)
- : Text is wrapped using a slower algorithm that favors better layout over speed. This is intended for body copy where good typography is favored over performance (for example, when the number of orphans should be kept to a minimum).
pub const revert_layer: #(String, String)
pub const stable: #(String, String)
- : Text is wrapped such that when the user is editing the content, the lines that come before the lines they are editing remain static rather than the whole block of text re-wrapping.> [!NOTE]> The CSS text module defines an
avoid-orphansvalue for thetext-wrap-styleproperty to avoid excessively short last lines and expect the user agent to consider more than one line when making break decisions. This value is not yet supported in any browser.