@@ -1796,7 +1796,7 @@ White Space and Wrapping: the 'white-space' property</h2>
17961796 white-space-mixed-004.xht
17971797 </wpt>
17981798
1799- This property is a shorthand for 'text -space-collapse' , 'text-wrap' , and 'text-space-trim' .
1799+ This property is a shorthand for 'white -space-collapse' , 'text-wrap' , and 'text-space-trim' .
18001800 It specifies two things:
18011801
18021802 <ul>
@@ -1815,34 +1815,34 @@ White Space and Wrapping: the 'white-space' property</h2>
18151815 <thead>
18161816 <tr>
18171817 <th> 'white-space'
1818- <th> 'text -space-collapse'
1818+ <th> 'white -space-collapse'
18191819 <th> 'text-wrap'
18201820 <th> 'text-space-trim'
18211821 </thead>
18221822 <tbody>
18231823 <tr>
18241824 <th> ''white-space/normal''
1825- <td> ''text -space-collapse/collapse''
1825+ <td> ''white -space-collapse/collapse''
18261826 <td> ''text-wrap/wrap''
18271827 <td> ''text-space-trim/none''
18281828 <tr>
18291829 <th> ''pre''
1830- <td> ''text -space-collapse/preserve''
1830+ <td> ''white -space-collapse/preserve''
18311831 <td> ''text-wrap/nowrap''
18321832 <td> ''text-space-trim/none''
18331833 <tr>
18341834 <th> ''white-space/nowrap''
1835- <td> ''text -space-collapse/collapse''
1835+ <td> ''white -space-collapse/collapse''
18361836 <td> ''text-wrap/nowrap''
18371837 <td> ''text-space-trim/none''
18381838 <tr>
18391839 <th> ''pre-wrap''
1840- <td> ''text -space-collapse/preserve''
1840+ <td> ''white -space-collapse/preserve''
18411841 <td> ''text-wrap/wrap''
18421842 <td> ''text-space-trim/none''
18431843 <tr>
18441844 <th> ''pre-line''
1845- <td> ''text -space-collapse/preserve-breaks''
1845+ <td> ''white -space-collapse/preserve-breaks''
18461846 <td> ''text-wrap/wrap''
18471847 <td> ''text-space-trim/none''
18481848 </tbody>
@@ -1851,7 +1851,7 @@ White Space and Wrapping: the 'white-space' property</h2>
18511851 ISSUE: Need a way to express ''break-spaces'' .
18521852
18531853 ISSUE: The following is the normative definition from Level 3;
1854- once 'text -space-collapse' can accommodate ''break-spaces''
1854+ once 'white -space-collapse' can accommodate ''break-spaces''
18551855 and [[#white-space-rules]] is updated
18561856 (assumming we still want to go in this direction),
18571857 this text should be merged into its longhands’ definitions.
@@ -2510,14 +2510,14 @@ White Space Processing & Control Characters</h2>
25102510 when encoded using an escape sequence (<code highlight=html> &#x0d;</code> ).
25112511
25122512<h3 id="white-space-collapsing">
2513- White Space Collapsing: the 'text -space-collapse' property</h3>
2513+ White Space Collapsing: the 'white -space-collapse' property</h3>
25142514
25152515 ISSUE: This section is still under discussion and may change in future drafts.
25162516 It also hasn't been properly updated to account for the newer values of 'white-space' ,
25172517 and has not been integrated into the white space processing rules (below).
25182518
25192519 <pre class="propdef">
2520- Name : text -space-collapse
2520+ Name : white -space-collapse
25212521 Value : collapse | discard | preserve | preserve-breaks | preserve-spaces
25222522 Initial : collapse
25232523 Applies to : text
@@ -2533,7 +2533,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
25332533 Values have the following meanings,
25342534 which must be interpreted according to the white space processing rules:
25352535
2536- <dl dfn-for=text -space-collapse dfn-type=value>
2536+ <dl dfn-for=white -space-collapse dfn-type=value>
25372537 <dt> <dfn>collapse</dfn>
25382538 <dd>
25392539 This value directs user agents to collapse sequences of white space
@@ -2574,7 +2574,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
25742574 <pre>
25752575 @namespace m "http://www.w3.org/1998/Math/MathML";
25762576 m|* {
2577- text -space-collapse: discard;
2577+ white -space-collapse: discard;
25782578 }
25792579 m|mi, m|mn, m|mo, m|ms, m|mtext {
25802580 text-space-trim: discard-inner;
@@ -9395,7 +9395,7 @@ Default UA Stylesheet</h2>
93959395 option { text-align: match-parent; }
93969396
93979397 /* do not allow white space to collapse in textarea */
9398- textarea { text -space-collapse: preserve !important; }
9398+ textarea { white -space-collapse: preserve !important; }
93999399
94009400 /* preserve character grid in preformatted text */
94019401 pre, code, kbd, samp, tt { text-spacing: none; }
@@ -10357,7 +10357,9 @@ Changes</h2>
1035710357 (<a href="https://github.com/w3c/csswg-drafts/issues/7079">Issue 7079</a> )
1035810358 * Extended contextual characters evaluated in 'text-spacing'
1035910359 to include characters from the <code> Pe</code> and <code> Ps</code> categories.
10360- (<a href="https://github.com/w3c/csswg-drafts/issues/6091">Issue 6091</a> )
10360+ (<a href="https://github.com/w3c/csswg-drafts/issues/6091">Issue 6091</a> )
10361+ * Renamed <css> text-space-collapse</css> back to 'white-space-collapse' .
10362+ (<a href="https://github.com/w3c/browser-specs/issues/879">Issue 879</a> )
1036110363
1036210364 Significant changes since the <a href="https://www.w3.org/TR/2022/WD-css-text-4-20220505/">5 May 2022 Working Draft</a> include:
1036310365 <ul>
@@ -10399,7 +10401,7 @@ Additions Since Level 3</h3>
1039910401
1040010402 * 'word-boundary-detection' , for automatically detecting word boundaries (at risk)
1040110403 * 'word-boundary-expansion' , for transforming word separators
10402- * 'text -space-collapse' longhand (of the longstanding 'white-space' property) and its ''preserve-spaces'' and ''text -space-collapse/discard'' values
10404+ * 'white -space-collapse' longhand (of the longstanding 'white-space' property) and its ''preserve-spaces'' and ''white -space-collapse/discard'' values
1040310405 * 'text-space-trim' , for trimming excess white space at the boundaries of an element
1040410406 * 'text-wrap' longhand (of the 'white-space' property) and its ''balance'' , ''stable'' , and ''pretty'' values
1040510407 * 'wrap-before' , 'wrap-after' , and 'wrap-inside' , to avoid or force wrapping (similar to the 'break-*' properties for pagination)
0 commit comments