Skip to content

Commit b5d9417

Browse files
committed
Add MathML example for text-space-collapse
1 parent b1a9334 commit b5d9417

2 files changed

Lines changed: 30 additions & 6 deletions

File tree

css3-text/Overview.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 25 July 2011</h2>
9090
<dt>This version:
9191

9292
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
93-
2011/07/25 01:34:44 $ (CVS $Revision$)</a> <!--
93+
2011/07/25 01:38:49 $ (CVS $Revision$)</a> <!--
9494
<dd><a href="http://www.w3.org/TR/2011/WD-css3-text-20110725/">http://www.w3.org/TR/2011/WD-css3-text-20110725/</a></dd>
9595
-->
9696

@@ -809,8 +809,8 @@ <h3 id=white-space-collapsing><span class=secno>3.1. </span> White Space
809809
before the first non-white-space character in the element as well as to
810810
discard all white space at the end of the element starting with the first
811811
line feed after the last non-white-space character in the element. For
812-
inline elements this value directs UAs to discard all whitespace at the
813-
beginning and end of the element. For other elements, this has no effect.
812+
other elements this value directs UAs to discard all whitespace at the
813+
beginning and end of the element.
814814

815815
<dt><dfn id=consume-before
816816
title="white-space:consume-before"><code>consume-before</code></dfn>
@@ -825,6 +825,19 @@ <h3 id=white-space-collapsing><span class=secno>3.1. </span> White Space
825825
immediately after the end of the element.
826826
</dl>
827827

828+
<div class=example>
829+
<p>The following style rules implement MathML's white space processing:
830+
831+
<pre>
832+
<!-- -->@namespace m "http://www.w3.org/1998/Math/MathML";
833+
<!-- -->m|* {
834+
<!-- --> text-space-collapse: discard;
835+
<!-- -->}
836+
<!-- -->m|mi, m|mn, m|mo, m|ms, m|mtext {
837+
<!-- --> text-space-collapse: trim-inner;
838+
<!-- -->}</pre>
839+
</div>
840+
828841
<h3 id=tab-size><span class=secno>3.2. </span> Tab Character Size: the
829842
&lsquo;<a href="#tab-size0"><code
830843
class=property>tab-size</code></a>&rsquo; property</h3>

css3-text/Overview.src.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,8 @@ <h3 id="white-space-collapsing">
465465
before the first non-white-space character in the element as well as
466466
to discard all white space at the end of the element starting with the
467467
first line feed after the last non-white-space character in the element.
468-
For inline elements this value directs UAs to discard all whitespace
469-
at the beginning and end of the element. For other elements, this has
470-
no effect.</dd>
468+
For other elements this value directs UAs to discard all whitespace
469+
at the beginning and end of the element.</dd>
471470
<dt><dfn title="white-space:consume-before"><code>consume-before</code></dfn></dt>
472471
<dd>This value directs the UA to collapse all collapsible whitespace
473472
immediately before the start of the element.
@@ -476,6 +475,18 @@ <h3 id="white-space-collapsing">
476475
immediately after the end of the element.
477476
</dl>
478477

478+
<div class="example">
479+
<p>The following style rules implement MathML's white space processing:
480+
<pre>
481+
<!-- -->@namespace m "http://www.w3.org/1998/Math/MathML";
482+
<!-- -->m|* {
483+
<!-- --> text-space-collapse: discard;
484+
<!-- -->}
485+
<!-- -->m|mi, m|mn, m|mo, m|ms, m|mtext {
486+
<!-- --> text-space-collapse: trim-inner;
487+
<!-- -->}</pre>
488+
</div>
489+
479490
<h3 id="tab-size">
480491
Tab Character Size: the 'tab-size' property</h3>
481492

0 commit comments

Comments
 (0)