Skip to content

Commit 7ae499f

Browse files
committed
[css-text-3] Replace   with   in sample rendering pre blocks
  is used as a 1em wide spacer, but it doesn't (reliably) work, since (at least on some platforms, such as OS X)   in a monospace font gets squeezed to 1ch, to preserve the monospacing. The ideographic space is also 1em wide, but doesn't get squeezed, so use that instead.
1 parent 96541e8 commit 7ae499f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

css-text-3/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,12 +1939,12 @@ Word Spacing: the 'word-spacing' property</h3>
19391939

19401940
&lt;p>abc&lt;/p></pre>
19411941

1942-
<p class="ls-ex good ls-fixed-width color-box" style="text-align: left">a&emsp;b&emsp;c</p>
1943-
<p class="ls-ex good ls-fixed-width color-box" style="text-align: right">a&emsp;b&emsp;c</p>
1942+
<p class="ls-ex good ls-fixed-width color-box" style="text-align: left">a&#x3000;b&#x3000;c</p>
1943+
<p class="ls-ex good ls-fixed-width color-box" style="text-align: right">a&#x3000;b&#x3000;c</p>
19441944

19451945
<p>UAs therefore must not append letter spacing to the right or trailing edge of a line:</p>
19461946

1947-
<p class="ls-ex bad ls-fixed-width color-box" style="text-align: right">a&emsp;b&emsp;c&emsp;</p>
1947+
<p class="ls-ex bad ls-fixed-width color-box" style="text-align: right">a&#x3000;b&#x3000;c&#x3000;</p>
19481948
</div>
19491949

19501950
<p>Letter spacing between two <a>typographic character units</a> effectively “belongs”
@@ -1963,7 +1963,7 @@ Word Spacing: the 'word-spacing' property</h3>
19631963

19641964
&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
19651965

1966-
<p class="ls-ex">a&emsp;<span class="color-box">b&emsp;&emsp;b</span>&emsp;c</p>
1966+
<p class="ls-ex">a&#x3000;<span class="color-box">b&#x3000;&#x3000;b</span>&#x3000;c</p>
19671967

19681968
<p>This also means that applying 'letter-spacing' to
19691969
an element containing only a single character
@@ -1975,7 +1975,7 @@ Word Spacing: the 'word-spacing' property</h3>
19751975

19761976
&lt;p>a&lt;span>b&lt;/span>c&lt;/p></pre>
19771977

1978-
<p class="ls-ex">a&emsp;<span class="color-box">b</span>&emsp;c</p>
1978+
<p class="ls-ex">a&#x3000;<span class="color-box">b</span>&#X3000;c</p>
19791979

19801980
<p>An inline box only includes
19811981
letter spacing between characters completely contained within that element:
@@ -1985,11 +1985,11 @@ Word Spacing: the 'word-spacing' property</h3>
19851985

19861986
&lt;p>a&lt;span>bb&lt;/span>c&lt;/p></pre>
19871987

1988-
<p class="ls-ex good">a&emsp;<span class="color-box">b&emsp;b</span>&emsp;c</p>
1988+
<p class="ls-ex good">a&#x3000;<span class="color-box">b&#x3000;b</span>&#x3000;c</p>
19891989

19901990
<p>It is incorrect to include the letter spacing on the right or trailing edge of the element:
19911991

1992-
<p class="ls-ex bad">a&emsp;<span class="color-box">b&emsp;b&emsp;</span>c</p>
1992+
<p class="ls-ex bad">a&#x3000;<span class="color-box">b&#x3000;b&#x3000;</span>c</p>
19931993

19941994
<p>Letter spacing is inserted <strong>after</strong> RTL reordering,
19951995
so the letter spacing applied to the inner span below has no effect,
@@ -2002,7 +2002,7 @@ Word Spacing: the 'word-spacing' property</h3>
20022002
&lt;!-- Reordering will display these in reverse order. --&gt;
20032003
<bdo dir=ltr>&lt;p>ab&lt;span>c&#x5d0;&lt;/span>&#x5d1;&#x5d2;&lt;/p></bdo></pre>
20042004

2005-
<p class="ls-ex">a&emsp;b</span>&emsp;<span class="color-box">c</span>&emsp;<span class="color-box">&#x5d0;</span>&emsp;&#x5d1;&emsp;&#x5d2;</p>
2005+
<p class="ls-ex">a&#x3000;b</span>&#x3000;<span class="color-box">c</span>&#x3000;<span class="color-box">&#x5d0;</span>&#x3000;&#x5d1;&#x3000;&#x5d2;</p>
20062006
</div>
20072007

20082008
<p>Letter spacing ignores invisible zero-width formatting characters

0 commit comments

Comments
 (0)