@@ -1796,7 +1796,7 @@ White Space and Wrapping: the 'white-space' property</h2>
1796
1796
white-space-mixed-004.xht
1797
1797
</wpt>
1798
1798
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' .
1800
1800
It specifies two things:
1801
1801
1802
1802
<ul>
@@ -1815,34 +1815,34 @@ White Space and Wrapping: the 'white-space' property</h2>
1815
1815
<thead>
1816
1816
<tr>
1817
1817
<th> 'white-space'
1818
- <th> 'text -space-collapse'
1818
+ <th> 'white -space-collapse'
1819
1819
<th> 'text-wrap'
1820
1820
<th> 'text-space-trim'
1821
1821
</thead>
1822
1822
<tbody>
1823
1823
<tr>
1824
1824
<th> ''white-space/normal''
1825
- <td> ''text -space-collapse/collapse''
1825
+ <td> ''white -space-collapse/collapse''
1826
1826
<td> ''text-wrap/wrap''
1827
1827
<td> ''text-space-trim/none''
1828
1828
<tr>
1829
1829
<th> ''pre''
1830
- <td> ''text -space-collapse/preserve''
1830
+ <td> ''white -space-collapse/preserve''
1831
1831
<td> ''text-wrap/nowrap''
1832
1832
<td> ''text-space-trim/none''
1833
1833
<tr>
1834
1834
<th> ''white-space/nowrap''
1835
- <td> ''text -space-collapse/collapse''
1835
+ <td> ''white -space-collapse/collapse''
1836
1836
<td> ''text-wrap/nowrap''
1837
1837
<td> ''text-space-trim/none''
1838
1838
<tr>
1839
1839
<th> ''pre-wrap''
1840
- <td> ''text -space-collapse/preserve''
1840
+ <td> ''white -space-collapse/preserve''
1841
1841
<td> ''text-wrap/wrap''
1842
1842
<td> ''text-space-trim/none''
1843
1843
<tr>
1844
1844
<th> ''pre-line''
1845
- <td> ''text -space-collapse/preserve-breaks''
1845
+ <td> ''white -space-collapse/preserve-breaks''
1846
1846
<td> ''text-wrap/wrap''
1847
1847
<td> ''text-space-trim/none''
1848
1848
</tbody>
@@ -1851,7 +1851,7 @@ White Space and Wrapping: the 'white-space' property</h2>
1851
1851
ISSUE: Need a way to express ''break-spaces'' .
1852
1852
1853
1853
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''
1855
1855
and [[#white-space-rules]] is updated
1856
1856
(assumming we still want to go in this direction),
1857
1857
this text should be merged into its longhands’ definitions.
@@ -2510,14 +2510,14 @@ White Space Processing & Control Characters</h2>
2510
2510
when encoded using an escape sequence (<code highlight=html> &#x0d;</code> ).
2511
2511
2512
2512
<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>
2514
2514
2515
2515
ISSUE: This section is still under discussion and may change in future drafts.
2516
2516
It also hasn't been properly updated to account for the newer values of 'white-space' ,
2517
2517
and has not been integrated into the white space processing rules (below).
2518
2518
2519
2519
<pre class="propdef">
2520
- Name : text -space-collapse
2520
+ Name : white -space-collapse
2521
2521
Value : collapse | discard | preserve | preserve-breaks | preserve-spaces
2522
2522
Initial : collapse
2523
2523
Applies to : text
@@ -2533,7 +2533,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
2533
2533
Values have the following meanings,
2534
2534
which must be interpreted according to the white space processing rules:
2535
2535
2536
- <dl dfn-for=text -space-collapse dfn-type=value>
2536
+ <dl dfn-for=white -space-collapse dfn-type=value>
2537
2537
<dt> <dfn>collapse</dfn>
2538
2538
<dd>
2539
2539
This value directs user agents to collapse sequences of white space
@@ -2574,7 +2574,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
2574
2574
<pre>
2575
2575
@namespace m "http://www.w3.org/1998/Math/MathML";
2576
2576
m|* {
2577
- text -space-collapse: discard;
2577
+ white -space-collapse: discard;
2578
2578
}
2579
2579
m|mi, m|mn, m|mo, m|ms, m|mtext {
2580
2580
text-space-trim: discard-inner;
@@ -9395,7 +9395,7 @@ Default UA Stylesheet</h2>
9395
9395
option { text-align: match-parent; }
9396
9396
9397
9397
/* do not allow white space to collapse in textarea */
9398
- textarea { text -space-collapse: preserve !important; }
9398
+ textarea { white -space-collapse: preserve !important; }
9399
9399
9400
9400
/* preserve character grid in preformatted text */
9401
9401
pre, code, kbd, samp, tt { text-spacing: none; }
@@ -10357,7 +10357,9 @@ Changes</h2>
10357
10357
(<a href="https://github.com/w3c/csswg-drafts/issues/7079">Issue 7079</a> )
10358
10358
* Extended contextual characters evaluated in 'text-spacing'
10359
10359
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> )
10361
10363
10362
10364
Significant changes since the <a href="https://www.w3.org/TR/2022/WD-css-text-4-20220505/">5 May 2022 Working Draft</a> include:
10363
10365
<ul>
@@ -10399,7 +10401,7 @@ Additions Since Level 3</h3>
10399
10401
10400
10402
* 'word-boundary-detection' , for automatically detecting word boundaries (at risk)
10401
10403
* '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
10403
10405
* 'text-space-trim' , for trimming excess white space at the boundaries of an element
10404
10406
* 'text-wrap' longhand (of the 'white-space' property) and its ''balance'' , ''stable'' , and ''pretty'' values
10405
10407
* 'wrap-before' , 'wrap-after' , and 'wrap-inside' , to avoid or force wrapping (similar to the 'break-*' properties for pagination)
0 commit comments