Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

2.2.52 [CSS-Level2-2009] Section 16.6.1, The 'white-space' processing model

V0259:

The specification states:

 If 'white-space' is set to 'pre' or 'pre-wrap', any sequence of spaces (U+0020) 
 unbroken by an element boundary is treated as a sequence of non-breaking spaces. 
 However, for 'pre-wrap', a line breaking opportunity exists at the end of the 
 sequence.

Quirks Mode and IE7 Mode (All Versions)

The pre-wrap value of the white-space property is not supported, and is treated as normal so that sequences of spaces are collapsed.

V0260:

The specification states:

 As each line is laid out,
  
 1. If a space (U+0020) at the beginning of a line has 'white-space' set to 
 'normal', 'nowrap', or 'pre-line', it is removed.

IE8 Mode and IE9 Mode (All Versions)

A space at the beginning of the line is removed if the white-space property is set to pre-wrap.

Quirks Mode (All Versions)

A space at the beginning of the line is removed if the white-space property is set to pre.

V0261:

The specification states:

 2. All tabs (U+0009) are rendered as a horizontal shift that lines up the start 
 edge of the next glyph with the next tab stop. Tab stops occur at points that are 
 multiples of 8 times the width of a space (U+0020) rendered in the block's font 
 from the block's starting content edge.

Quirks Mode (All Versions)

Tabs are not rendered.

C0024:

The specification states:

 4. If spaces (U+0020) or tabs (U+0009) at the end of a line have 'white-space' set 
 to 'pre-wrap', UAs may visually collapse them.

IE8 Mode and IE9 Mode (All Versions)

When the white-space property is set to pre-wrap, spaces and tabs at the end of a line are NOT collapsed.

Show:
© 2016 Microsoft