@@ -25,7 +25,7 @@ Transforming Text</h2>
2525<h2 id="white-space-processing">
2626White Space Processing</h2>
2727
28- <p class="note"> Add final level 3 tab-size</p>
28+ <p class="note"> Add final level 3 tab-size and processing details </p>
2929
3030<h3 id="white-space-collapsing">
3131White Space Collapsing: the 'text-space-collapse' property</h3>
@@ -34,7 +34,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
3434
3535 <pre class="propdef">
3636 Name : text-space-collapse
37- Value : collapse | discard | [ [ preserve | preserve-breaks] && [ trim-inner || consume-before || consume-after ]
37+ Value : collapse | discard | preserve | preserve-breaks
3838 Initial : collapse
3939 Applies to : all elements
4040 Inherited : yes
@@ -48,8 +48,7 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
4848 This property declares whether and how
4949 <a href="#white-space-processing">white space</a> inside the element is
5050 collapsed. Values have the following meanings, which must be interpreted
51- according to the <a href="#white-space-rules">white space processing
52- rules</a> :
51+ according to the white space processing rules:
5352
5453 <dl dfn-for=text-space-collapse dfn-type=value>
5554 <dt> <dfn>collapse</dfn>
@@ -73,7 +72,46 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
7372 <dd>
7473 This value directs user agents to "discard" all white space in the
7574 element.
75+ Issue: Does this preserve line break opportunities or no? Do we need a "hide" value?
76+ </dl>
77+
78+ <div class="example">
79+
80+ The following style rules implement MathML's white space processing:
81+
82+ <pre>
83+ @namespace m "http://www.w3.org/1998/Math/MathML";
84+ m|* {
85+ text-space-collapse: discard;
86+ }
87+ m|mi, m|mn, m|mo, m|ms, m|mtext {
88+ text-space-collapse: trim-inner;
89+ }
90+ </pre>
91+ </div>
92+
93+ <p class="issue"> This section is still under discussion and may change in future drafts.</p>
94+
95+ <h3 id="white-space-trim">
96+ White Space Trimming: the 'text-space-trim' property</h3>
97+
98+ <pre class="propdef">
99+ Name : text-space-trim
100+ Value : none | trim-inner || consume-before || consume-after
101+ Initial : collapse
102+ Applies to : all elements
103+ Inherited : no
104+ Percentages : n/a
105+ Computed value : as specified
106+ Media : visual
107+ </pre>
108+
109+ This property allows authors to specify trimming behavior
110+ at the beginning and end of a box.
111+ Values have the following meanings,
112+ which must be interpreted according to the white space processing rules:
76113
114+ <dl dfn-for=text-space-trim dfn-type=value>
77115 <dt> <dfn>trim-inner</dfn>
78116 <dd>
79117 For block containers this value directs UAs to discard all whitespace
@@ -95,22 +133,6 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
95133 immediately after the end of the element.
96134 </dl>
97135
98- <div class="example">
99-
100- The following style rules implement MathML's white space processing:
101-
102- <pre>
103- @namespace m "http://www.w3.org/1998/Math/MathML";
104- m|* {
105- text-space-collapse: discard;
106- }
107- m|mi, m|mn, m|mo, m|ms, m|mtext {
108- text-space-collapse: trim-inner;
109- }
110- </pre>
111- </div>
112-
113-
114136 <div class="example">
115137 <p> The following style rules render DT elements as a comma-separated list:
116138 <pre>
@@ -119,13 +141,6 @@ White Space Collapsing: the 'text-space-collapse' property</h3>
119141 </pre>
120142 </div>
121143
122- <p class="issue"> It's been pointed out that ''trim-inner'' , ''consume-before'' ,
123- and ''consume-after'' won't work well because 'text-space-collapse' is
124- inherited, meaning that inserting a <span> or >div> would cause more
125- white space to be removed than otherwise.
126-
127- <p class="note"> Add final level 3 details</p>
128-
129144<h2 id="line-breaking">
130145Line Breaking and Word Boundaries</h2>
131146
0 commit comments