MDN self-hosted library · e01.org

white-space

The white-space SVG attribute specifies how white space within text should be handled. This includes whether and how white space inside the element is collapsed and whether lines may wrap at unforced soft wrap opportunities.

no runnable cells svg-attribute upstream source

The white-space SVG attribute specifies how white space within text should be handled. This includes whether and how white space inside the element is collapsed and whether lines may wrap at unforced soft wrap opportunities.

[!NOTE] As a presentation attribute, white-space also has a CSS property counterpart: white-space. When both are specified, the CSS property takes priority.

Usage notes

Value normal | pre | nowrap | pre-wrap | break-space | pre-line
Default value normal
Animatable No

For a description of the values, please refer to the CSS white-space property.

Specifications

Browser compatibility

See also

  • xml:space attribute
  • CSS white-space property