Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. SVG
  3. Reference
  4. Attributes
  5. white-space

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.

Usage notes

Valuenormal |pre |nowrap |pre-wrap |break-space |pre-line
Default valuenormal
AnimatableNo

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

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp