white-space
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Thewhite-space SVG attribute specifies howwhite 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.
In this article
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 theCSSwhite-space property.
Specifications
| Specification |
|---|
| CSS Text Module Level 4> # white-space-property> |
| Scalable Vector Graphics (SVG) 2> # TextWhiteSpace> |
Browser compatibility
See also
xml:spaceattribute- CSS
white-spaceproperty