all-space-treatment

Jump to: navigation, search

all-space-treatment

This page has been flagged with the following issues:

High-level issues:

Content:


W3C Candidate Recommendation

Summary

Specifies the treatment of all consecutive white space characters (with no exception for line feed characters).

Overview table

Initial value collapse
Applies to All elements and generated content.
Inherited Yes
Media
Computed value As specified (except for initial and inherit).
Animatable No
CSS Object Model Property

Syntax

  • all-space-treatment: collapse
  • all-space-treatment: preserve


Values

collapse
The white space characters are collapsed according to the rules described in white space processing.
preserve
All white space characters are rendered as they are.


Examples

CSS

/* preserve */
p.asis {
    all-space-treatment: preserve;
}



Related specifications

Specification Status Related Changes
CSS3 Text Module W3C Candidate Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?