Skip to content

Commit 168699b

Browse files
committed
Clarifications to text-transform, fix example to use new digits feature, forbid combination across element boundaries
1 parent 7514e77 commit 168699b

2 files changed

Lines changed: 56 additions & 58 deletions

File tree

css3-writing-modes/Overview.html

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929

3030
<h1>CSS Writing Modes Module Level 3</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 June 2011</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 8 June 2011</h2>
3333

3434
<dl>
3535
<dt>This version:
3636

3737
<dd><a
3838
href="http://dev.w3.org/csswg/css3-writing-modes/">http://dev.w3.org/csswg/css3-writing-modes/</a>
3939
<!--
40-
<dd><a href="http://www.w3.org/TR/2011/WD-css3-writing-modes-20110607">http://www.w3.org/TR/2011/ED-css3-writing-modes-20110607/</a>
40+
<dd><a href="http://www.w3.org/TR/2011/WD-css3-writing-modes-20110608">http://www.w3.org/TR/2011/ED-css3-writing-modes-20110608/</a>
4141
-->
4242

4343

@@ -2830,10 +2830,13 @@ <h2 id=text-combine><span class=secno>9. </span> Glyph Composition: the
28302830

28312831
<dt><dfn id=all title="text-combine-horizontal:all">all</dfn>
28322832

2833-
<dd>
2834-
<p>In vertical writing mode, attempt to display the text contents of the
2835-
element horizontally within the vertical line box, ideally within the
2836-
space of one ideographic character (1em square). See below.
2833+
<dd>In vertical writing mode, attempt to display the text contents of the
2834+
element horizontally within the vertical line box, ideally within the
2835+
space of one ideographic character. (See below.) The resulting
2836+
composition is treated as a single glyph for the purposes of layout and
2837+
decoration. If the content contains any element boundaries, this is
2838+
treated as &lsquo;<code class=css>text-combine-horizontal:
2839+
none</code>&rsquo;.
28372840

28382841
<dt><dfn id=digits title="text-combine-horizontal:digits">digits</dfn>
28392842

@@ -2883,24 +2886,22 @@ <h2 id=text-combine><span class=secno>9. </span> Glyph Composition: the
28832886

28842887
<p>When combining text as for &lsquo;<code
28852888
class=css>text-combine-horizontal: all</code>&rsquo;, the glyphs of the
2886-
combined text are stacked horizontally, similar to the contents of an
2887-
inline-box with a horizontal writing mode and a line-height of 1em. The
2888-
effective size of the composition is assumed to be 1em square; anything
2889-
outside the square is not measured for layout purposes. The UA should
2890-
center the glyphs horizontally and vertically within the measured 1em
2891-
square. The baseline of the resulting composition chosen such that the
2892-
square is centered between the content edges of its parent inline box. Any
2893-
CSS fullwidth transformations (&lsquo;<code class=css>text-transform:
2894-
full-width</code>&rsquo; <a href="#CSS3TEXT"
2889+
combined text are stacked horizontally (without line breaks,
2890+
letter-spacing, etc., but using the specified font settings), similar to
2891+
the contents of an inline-box with a horizontal writing mode and a
2892+
line-height of 1em. The effective size of the composition is assumed to be
2893+
1em square; anything outside the square is not measured for layout
2894+
purposes. The UA should center the glyphs horizontally and vertically
2895+
within the measured 1em square. The baseline of the resulting composition
2896+
chosen such that the square is centered between the content edges of its
2897+
parent inline box prior to any baseline alignment shift.
2898+
2899+
<p>Any CSS fullwidth transformations (&lsquo;<code
2900+
class=css>text-transform: full-width</code>&rsquo; <a href="#CSS3TEXT"
28952901
rel=biblioentry>[CSS3TEXT]<!--{{CSS3TEXT}}--></a> or &lsquo;<code
28962902
class=css>font-variant-east-asian-width: full-width</code>&rsquo; <a
28972903
href="#CSS3FONT" rel=biblioentry>[CSS3FONT]<!--{{CSS3FONT}}--></a>) are
2898-
turned off when the element contains more than one character.
2899-
2900-
<p>UAs are not required to combine content that contains any element
2901-
boundaries: in such cases, the UA may treat such contents as for
2902-
&lsquo;<code class=css>text-combine-horizontal: none</code>&rsquo;.
2903-
Authors should beware that such contents may not be combined.
2904+
turned off for combined text of more than one character.
29042905

29052906
<div class=example>
29062907
<p>In East Asian documents, the &lsquo;<a
@@ -2922,15 +2923,13 @@ <h2 id=text-combine><span class=secno>9. </span> Glyph Composition: the
29222923
<p>The figure is the result of the rules</p>
29232924

29242925
<pre>
2925-
<!-- -->.num { text-combine-horizontal: all; }
2926+
<!-- -->date { text-combine-horizontal: digits 2; }
29262927
</pre>
29272928

29282929
<p>and the following markup:</p>
29292930

29302931
<pre>
2931-
<!-- -->&#x5E73;&#x6210;&lt;span class=&quot;num&quot;&gt;20&lt;/span&gt;&#x5E74;
2932-
<!-- -->&lt;span class=&quot;num&quot;&gt;4&lt;/span&gt;&#x6708;
2933-
<!-- -->&lt;span class=&quot;num&quot;&gt;16&lt;/span&gt;&#x65E5;&#x306B;
2932+
<!-- -->&lt;date&gt;&#x5E73;&#x6210;20&#x5E74;4&#x6708;16&#x65E5;&#x306B;&lt;/date&gt;
29342933
</pre>
29352934

29362935
<p>In Japanese, this effect is known as <i lang=ja>tate-chu-yoko</i>.
@@ -3531,10 +3530,10 @@ <h3 class=no-num id=normative-references> Normative references</h3>
35313530
<dt id=CSS21>[CSS21]
35323531

35333532
<dd>Bert Bos; et al. <a
3534-
href="http://www.w3.org/TR/2009/CR-CSS2-20090423"><cite>Cascading Style
3535-
Sheets Level 2 Revision 1 (CSS&#160;2.1) Specification.</cite></a> 23
3536-
April 2009. W3C Candidate Recommendation. (Work in progress.) URL: <a
3537-
href="http://www.w3.org/TR/2009/CR-CSS2-20090423">http://www.w3.org/TR/2009/CR-CSS2-20090423</a>
3533+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style
3534+
Sheets Level 2 Revision 1 (CSS&#160;2.1) Specification.</cite></a> 7 June
3535+
2011. W3C Recommendation. URL: <a
3536+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
35383537
</dd>
35393538
<!---->
35403539

@@ -3570,10 +3569,10 @@ <h3 class=no-num id=normative-references> Normative references</h3>
35703569
<dt id=SVG11>[SVG11]
35713570

35723571
<dd>Erik Dahlstr&#246;m; et al. <a
3573-
href="http://www.w3.org/TR/2010/WD-SVG11-20100622/"><cite>Scalable Vector
3574-
Graphics (SVG) 1.1 (Second Edition).</cite></a> 22 June 2010. W3C Working
3572+
href="http://www.w3.org/TR/2011/WD-SVG11-20110512/"><cite>Scalable Vector
3573+
Graphics (SVG) 1.1 (Second Edition).</cite></a> 12 May 2011. W3C Working
35753574
Draft. (Work in progress.) URL: <a
3576-
href="http://www.w3.org/TR/2010/WD-SVG11-20100622/">http://www.w3.org/TR/2010/WD-SVG11-20100622/</a>
3575+
href="http://www.w3.org/TR/2011/WD-SVG11-20110512/">http://www.w3.org/TR/2011/WD-SVG11-20110512/</a>
35773576
</dd>
35783577
<!---->
35793578

@@ -3651,10 +3650,9 @@ <h3 class=no-num id=other-references> Other references</h3>
36513650
<dt id=CSS3COLOR>[CSS3COLOR]
36523651

36533652
<dd>Tantek &#199;elik; Chris Lilley; L. David Baron. <a
3654-
href="http://www.w3.org/TR/2010/PR-css3-color-20101028"><cite>CSS Color
3655-
Module Level 3.</cite></a> 28 October 2010. W3C Proposed Recommendation.
3656-
(Work in progress.) URL: <a
3657-
href="http://www.w3.org/TR/2010/PR-css3-color-20101028">http://www.w3.org/TR/2010/PR-css3-color-20101028</a>
3653+
href="http://www.w3.org/TR/2011/REC-css3-color-20110607"><cite>CSS Color
3654+
Module Level 3.</cite></a> 7 June 2011. W3C Recommendation. URL: <a
3655+
href="http://www.w3.org/TR/2011/REC-css3-color-20110607">http://www.w3.org/TR/2011/REC-css3-color-20110607</a>
36583656
</dd>
36593657
<!---->
36603658

@@ -3670,11 +3668,11 @@ <h3 class=no-num id=other-references> Other references</h3>
36703668

36713669
<dt id=CSS3LIST>[CSS3LIST]
36723670

3673-
<dd>Ian Hickson; Tantek &#199;el&#305;?k. <a
3674-
href="http://www.w3.org/TR/2002/WD-css3-lists-20021107"><cite>CSS3
3675-
module: Lists.</cite></a> 7 November 2002. W3C Working Draft. (Work in
3676-
progress.) URL: <a
3677-
href="http://www.w3.org/TR/2002/WD-css3-lists-20021107">http://www.w3.org/TR/2002/WD-css3-lists-20021107</a>
3671+
<dd>Tab Atkins Jr. <a
3672+
href="http://www.w3.org/TR/2011/WD-css3-lists-20110524"><cite>CSS Lists
3673+
and Counters Module Level 3.</cite></a> 24 May 2011. W3C Working Draft.
3674+
(Work in progress.) URL: <a
3675+
href="http://www.w3.org/TR/2011/WD-css3-lists-20110524">http://www.w3.org/TR/2011/WD-css3-lists-20110524</a>
36783676
</dd>
36793677
<!---->
36803678

css3-writing-modes/Overview.src.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,9 +2116,13 @@ <h2 id="text-combine">
21162116
<dt><dfn title="text-combine-horizontal:none">none</dfn>
21172117
<dd>No special processing.</dd>
21182118
<dt><dfn title="text-combine-horizontal:all">all</dfn>
2119-
<dd><p>In vertical writing mode, attempt to display the text contents
2119+
<dd>In vertical writing mode, attempt to display the text contents
21202120
of the element horizontally within the vertical line box, ideally
2121-
within the space of one ideographic character (1em square). See below.
2121+
within the space of one ideographic character. (See below.) The
2122+
resulting composition is treated as a single glyph for the purposes
2123+
of layout and decoration.
2124+
If the content contains any element boundaries, this is treated as
2125+
''text-combine-horizontal: none''.
21222126
<dt><dfn title="text-combine-horizontal:digits">digits</dfn>
21232127
<dd>Within the element, each sequence of consecutive horizontal digits
21242128
that has as many or fewer characters than the integer given (or 2,
@@ -2154,23 +2158,21 @@ <h2 id="text-combine">
21542158
<p class="issue">Do we need a tolerance value for scaling? (e.g. 1.1 instead of 1em)
21552159

21562160
<p>When combining text as for ''text-combine-horizontal: all'', the
2157-
glyphs of the combined text are stacked horizontally, similar to
2158-
the contents of an inline-box with a horizontal writing mode and
2159-
a line-height of 1em. The effective size of the composition is
2160-
assumed to be 1em square; anything outside the square is not
2161+
glyphs of the combined text are stacked horizontally (without line
2162+
breaks, letter-spacing, etc., but using the specified font settings),
2163+
similar to the contents of an inline-box with a horizontal writing
2164+
mode and a line-height of 1em. The effective size of the composition
2165+
is assumed to be 1em square; anything outside the square is not
21612166
measured for layout purposes. The UA should center the glyphs
21622167
horizontally and vertically within the measured 1em square.
21632168
The baseline of the resulting composition chosen such that the
21642169
square is centered between the content edges of its parent inline
2165-
box. Any CSS fullwidth transformations
2170+
box prior to any baseline alignment shift.
2171+
2172+
<p>Any CSS fullwidth transformations
21662173
(''text-transform: full-width'' [[CSS3TEXT]] or
21672174
''font-variant-east-asian-width: full-width'' [[CSS3FONT]])
2168-
are turned off when the element contains more than one character.
2169-
2170-
<p>UAs are not required to combine content that contains any
2171-
element boundaries: in such cases, the UA may treat such contents
2172-
as for 'text-combine-horizontal: none'. Authors should beware that
2173-
such contents may not be combined.
2175+
are turned off for combined text of more than one character.
21742176

21752177
<div class="example">
21762178
<p>In East Asian documents, the ''text-combine-horizontal'' effect is often
@@ -2187,13 +2189,11 @@ <h2 id="text-combine">
21872189

21882190
<p>The figure is the result of the rules</p>
21892191
<pre>
2190-
<!-- -->.num { text-combine-horizontal: all; }
2192+
<!-- -->date { text-combine-horizontal: digits 2; }
21912193
</pre>
21922194
<p>and the following markup:</p>
21932195
<pre>
2194-
<!-- -->&#x5E73;&#x6210;&lt;span class=&quot;num&quot;&gt;20&lt;/span&gt;&#x5E74;
2195-
<!-- -->&lt;span class=&quot;num&quot;&gt;4&lt;/span&gt;&#x6708;
2196-
<!-- -->&lt;span class=&quot;num&quot;&gt;16&lt;/span&gt;&#x65E5;&#x306B;
2196+
<!-- -->&lt;date&gt;&#x5E73;&#x6210;20&#x5E74;4&#x6708;16&#x65E5;&#x306B;&lt;/date&gt;
21972197
</pre>
21982198

21992199
<p>In Japanese, this effect is known as <i lang="ja">tate-chu-yoko</i>.

0 commit comments

Comments
 (0)