@@ -12,6 +12,7 @@ Editor: Koji Ishii, Invited Expert, kojiishi@gluesoft.co.jp
1212Editor : Alan Stearns, Adobe Systems, stearns@adobe.com
1313Abstract : This module defines properties for text manipulation and specifies their processing model. It covers line breaking, justification and alignment, white space handling, and text transformation.
1414Ignored terms : segment break, segment breaks
15+ At Risk : The ''preserve-trim'' of the 'text-space-collapse' property
1516</pre>
1617
1718<h2 id="intro">
@@ -36,7 +37,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
3637
3738 <pre class="propdef">
3839 Name : text-space-collapse
39- Value : collapse | discard | preserve | preserve-breaks | preserve-spaces
40+ Value : collapse | discard | preserve | preserve-auto | preserve-trim | preserve- breaks | preserve-spaces
4041 Initial : collapse
4142 Applies to : all elements
4243 Inherited : yes
@@ -65,6 +66,37 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
6566 from collapsing sequences of white space.
6667 <a>Segment breaks</a> are preserved as forced line breaks.
6768
69+ <dt> <dfn>preserve-auto</dfn>
70+ <dd>
71+ This value preserves white space and <a>segment breaks</a> as for ''preserve'' .
72+ However, the UA <em> may</em> visually collapse
73+ the advance widths of preserved white space
74+ that occur at the end of a line.
75+
76+ If 'text-wrap' is ''text-wrap/normal'' or ''text-wrap/balance'' ,
77+ whether or not there are soft wrap opportunities
78+ in preserved sequences of white space,
79+ and if yes where and under what condition,
80+ is UA defined.
81+
82+ Both with regards to collapsing
83+ and to soft wrap opportunities,
84+ the UA should follow platform conventions.
85+
86+ <dt> <dfn>preserve-trim</dfn>
87+ <dd>
88+ This value preserves white space and <a>segment breaks</a> as for ''preserve'' .
89+ However, the UA <em> must</em> visually collapse to 0
90+ the advance widths of all preserved white space
91+ that occur at the end of a line.
92+
93+ Note: the ''preserve-trim'' value is at risk.
94+
95+ Issue: The CSSWG would appreciate feedback
96+ on the use cases for this value,
97+ to evaluate whether trimming leading spaces
98+ could be needed as well.
99+
68100 <dt> <dfn>preserve-breaks</dfn>
69101 <dd>
70102 This value collapses white space as for ''collapse'' , but preserves
@@ -109,7 +141,7 @@ White Space Trimming: the 'text-space-trim' property</h3>
109141 <pre class="propdef">
110142 Name : text-space-trim
111143 Value : none | trim-inner || discard-before || discard-after
112- Initial : collapse
144+ Initial : none
113145 Applies to : all elements
114146 Inherited : no
115147 Percentages : n/a
@@ -450,6 +482,52 @@ Shorthand for White Space and Wrapping: the 'white-space' property</h2>
450482 Note: This shorthand combines both inheritable and non-inheritable properties.
451483 If this is a problem, please inform the CSSWG.
452484
485+ The following table gives the mapping of the values of the shorthand to its longhands.
486+
487+ <table class="data">
488+ <colgroup class="header"></colgroup>
489+ <colgroup span=3></colgroup>
490+ <thead>
491+ <tr>
492+ <th> 'white-space'
493+ <th> 'text-space-collapse'
494+ <th> 'text-wrap'
495+ <th> 'text-space-trim'
496+ </thead>
497+ <tbody>
498+ <tr>
499+ <th> ''white-space/normal''
500+ <td> ''text-space-collapse/collapse''
501+ <td> ''text-wrap/normal''
502+ <td> ''text-space-trim/none''
503+ <tr>
504+ <th> ''pre''
505+ <td> ''text-space-collapse/preserve''
506+ <td> ''text-wrap/nowrap''
507+ <td> ''text-space-trim/none''
508+ <tr>
509+ <th> ''nowrap''
510+ <td> ''text-space-collapse/collapse''
511+ <td> ''text-wrap/nowrap''
512+ <td> ''text-space-trim/none''
513+ <tr>
514+ <th> ''pre-wrap''
515+ <td> ''text-space-collapse/preserve''
516+ <td> ''text-wrap/normal''
517+ <td> ''text-space-trim/none''
518+ <tr>
519+ <th> ''pre-wrap-auto''
520+ <td> ''text-space-collapse/preserve-auto''
521+ <td> ''text-wrap/normal''
522+ <td> ''text-space-trim/none''
523+ <tr>
524+ <th> ''pre-line''
525+ <td> ''text-space-collapse/preserve-breaks''
526+ <td> ''text-wrap/normal''
527+ <td> ''text-space-trim/none''
528+ </tbody>
529+ </table>
530+
453531 Issue: Add details from level 3
454532
455533<h2 id="hyphenation">
0 commit comments