Skip to content

Commit d904614

Browse files
committed
[css-writing-modes] text-combine-horizontal will inherit per WG resolution
1 parent 181f2b1 commit d904614

2 files changed

Lines changed: 52 additions & 23 deletions

File tree

css-writing-modes/Overview.html

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</a></p>
3232
<h1 class="p-name no-ref" id=title>CSS Writing Modes Level 3</h1>
3333
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
34-
<span class=dt-updated><span class=value-title title=20130914>14 September 2013</span></span></span></h2>
34+
<span class=dt-updated><span class=value-title title=20130913>13 September 2013</span></span></span></h2>
3535
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-writing-modes-3/>http://dev.w3.org/csswg/css-writing-modes-3/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css3-writing-modes/>http://www.w3.org/TR/css3-writing-modes/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-writing-modes-3/>http://dev.w3.org/csswg/css-writing-modes-3/</a>
3636
<dt>Feedback:</dt>
3737
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-writing-modes%5D%20feedback">www-style@w3.org</a>
@@ -124,7 +124,8 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
124124
Table Caption Mappings: the <span class=property data-link-type=propdesc title=caption-side>caption-side</span> keywords</a></ul><li><a href=#page-direction><span class=secno>8</span>
125125
Page Flow: the page progression direction</a><li><a href=#text-combine><span class=secno>9</span>
126126
Glyph Composition</a><ul class=toc><li><a href=#text-combine-horizontal><span class=secno>9.1</span>
127-
Horizontal-in-Vertical Composition: the <span class=property data-link-type=propdesc title=text-combine-horizontal>text-combine-horizontal</span> property</a></ul><li><a href=#changes><span class=secno></span>Changes</a><ul class=toc><li><a href=#changes-201211><span class=secno></span>
127+
Horizontal-in-Vertical Composition: the <span class=property data-link-type=propdesc title=text-combine-horizontal>text-combine-horizontal</span> property</a><ul class=toc><li><a href=#text-combine-compression><span class=secno>9.1.1</span>
128+
Compression Rules</a></ul></ul><li><a href=#changes><span class=secno></span>Changes</a><ul class=toc><li><a href=#changes-201211><span class=secno></span>
128129
Changes since the <span>November
129130
2012 CSS Writing Modes Module Level 3 <spanbbr title="Working Draft">WD</spanbbr></span></a><li><a href=#changes-201205><span class=secno></span>
130131
Changes since the <span>May
@@ -2205,23 +2206,23 @@ <h2 class="heading settled heading" data-level=9 id=text-combine><span class=sec
22052206
<h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><span class=secno>9.1 </span><span class=content>
22062207
Horizontal-in-Vertical Composition: the <a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> property</span><a class=self-link href=#text-combine-horizontal></a></h3>
22072208

2208-
<table class=propdef><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-text-combine-horizontal>text-combine-horizontal<a class=self-link href=#propdef-text-combine-horizontal></a></dfn><tr><th>Value:<td>none | all | [ digits &lt;integer&gt;? ]<tr><th>Initial:<td>none<tr><th>Applies to:<td>non-replaced inline elements<tr><th>Inherited:<td><a class=issue href=http://lists.w3.org/Archives/Public/www-style/2013Jul/0154.html id=issue-f63bb4f2><a class=self-link href=#issue-f63bb4f2></a>???</a><tr><th>Media:<td>visual<tr><th>Computed value:<td>specified keyword, plus integer if <span class=css data-link-type=maybe>digits</span><tr><th>Canonical order:<td>n/a<tr><th>Percentages:<td>n/a<tr><th>Animatable:<td>no</table>
2209-
<p>This property allows the combination of multiple characters into the
2210-
space of a single character. This property only has an effect
2211-
in vertical writing modes. Values have the following meanings:</p>
2209+
<table class=propdef><tr><th>Name:<td><dfn class=css-code data-dfn-type=property data-export="" id=propdef-text-combine-horizontal>text-combine-horizontal<a class=self-link href=#propdef-text-combine-horizontal></a></dfn><tr><th>Value:<td>none | all | [ digits &lt;integer&gt;? ]<tr><th>Initial:<td>none<tr><th>Applies to:<td>non-replaced inline elements<tr><th>Inherited:<td>yes<tr><th>Media:<td>visual<tr><th>Computed value:<td>specified keyword, plus integer if <span class=css data-link-type=maybe>digits</span><tr><th>Canonical order:<td>n/a<tr><th>Percentages:<td>n/a<tr><th>Animatable:<td>no</table>
2210+
<p class=issue id=issue-7f731b1a><a class=self-link href=#issue-7f731b1a></a>The WG would appreciate a better (more obvious / more concise) name for this, if anyone can come up with one.
2211+
2212+
<p>This property specifies the combination of multiple characters into the space of a single character.
2213+
If the combined text is wider than 1em, the UA must fit the contents within 1em, see below.
2214+
The resulting composition is treated as a single upright glyph for the purposes of layout and decoration.
2215+
This property only has an effect in vertical writing modes. Values have the following meanings:
22122216

22132217
<dl>
22142218
<dt><dfn class=css-code data-dfn-for=text-combine-horizontal data-dfn-type=value data-export="" id=valuedef-none>none<a class=self-link href=#valuedef-none></a></dfn>
22152219
<dd>No special processing.</dd>
22162220

22172221
<dt><dfn class=css-code data-dfn-for=text-combine-horizontal data-dfn-type=value data-export="" id=valuedef-all>all<a class=self-link href=#valuedef-all></a></dfn>
22182222
<dd>In vertical writing modes,
2219-
attempt to display the text contents of the element horizontally within the vertical line box.
2220-
If the contents are wider than 1em, the UA must fit the contents within 1em, see below.
2221-
The resulting composition is treated as a single glyph for the purposes
2222-
of layout and decoration.
2223-
If the content contains any element boundaries this is treated as
2224-
<a class=css data-link-type=maybe href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal: none</a> on the element and any descendants.
2223+
attempt to typeset all consecutive <a href=#character>characters</a> within the element
2224+
horizontally within the vertical line box,
2225+
such that they take up the space of a single character.
22252226
<!--
22262227
<dt><dfn value for=text-combine-horizontal>numeric</dfn>
22272228
<dd>Within the element, each sequence of consecutive horizontal numbers
@@ -2233,11 +2234,12 @@ <h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><s
22332234
<a href="#script-orientations">vertical script</a>.
22342235
-->
22352236
<dt><dfn class=css-code data-dfn-for=text-combine-horizontal data-dfn-type=value data-export="" id=valuedef-digits-integer>digits <var>&lt;integer&gt;</var>?<a class=self-link href=#valuedef-digits-integer></a></dfn>
2236-
<dd>Within the element, each maximal sequence of consecutive ASCII digits (U+0030–U+0039)
2237-
that has as many or fewer characters than the integer given is treated
2238-
as if it were in an anonymous inline box with
2239-
<a class=css data-link-type=maybe href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal: all</a>.
2240-
When the integer is omitted, 2 is used.
2237+
<dd>Within the element,
2238+
attempt to typeset each maximal sequence of consecutive ASCII digits (U+0030–U+0039)
2239+
that has as many or fewer characters than the integer given
2240+
horizontally within the vertical line box,
2241+
such that it takes up the space of a single character.
2242+
When the integer is omitted, it computes to 2.
22412243
Integers outside the range 2-4 are invalid.
22422244
<!--
22432245
<dt><dfn value for=text-combine-horizontal>alpha</dfn>
@@ -2296,6 +2298,28 @@ <h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><s
22962298
<p class=caption>Example of mis-applied <i lang=ja title="">tate-chu-yoko</i></p>
22972299
</div>
22982300
</div>
2301+
<!--
2302+
<h4 id="text-combine-runs">
2303+
Text Run Rules</h4>
2304+
2305+
<p>This feature can only combine plain text,
2306+
therefore each combined text run must contain only text: no element boundaries.
2307+
Because the property inherits,
2308+
the UA must ensure that the contents of the element effecting the combination
2309+
are not part of a sequence of the specified character pattern
2310+
that happens to begin or end outside the element;
2311+
if so, then the text is laid out normally, as if 'text-combine-horizontal' were <span data-link-type="maybe" class="css">none</span>.
2312+
2313+
<div class="example">
2314+
<p>For example, the following sequence of “1234” would be combined:
2315+
<pre>&lt;tcy>&lt;span>1234&lt;/span>&lt;/tcy></pre> <p>However, the next example would not result in any combined text,
2316+
even though the inner span (which has inherited a value of <span data-link-type="maybe" class="css">digits 4</span>) contains only text,
2317+
because “12“ and “34” are both part of the larger sequence “1234”
2318+
<pre>&lt;tcy>12&lt;span>34&lt;/span>&lt;/tcy></pre> <p>Similarly,
2319+
</div>
2320+
-->
2321+
<h4 class="heading settled heading" data-level=9.1.1 id=text-combine-compression><span class=secno>9.1.1 </span><span class=content>
2322+
Compression Rules</span><a class=self-link href=#text-combine-compression></a></h4>
22992323

23002324
<p>In order to preserve typographic color when compressing the text to 1em,
23012325
when the combined text consists of more than one <a href=#character>character</a>,
@@ -2435,9 +2459,9 @@ <h3 class="no-num heading settled heading" id=changes-201211><span class=content
24352459
2012 CSS Writing Modes Module Level 3 <abbr title="Working Draft">WD</abbr></a></span><a class=self-link href=#changes-201211></a></h3>
24362460
<ul>
24372461
<li>Added back <span class=css data-link-type=maybe>digits</span> value of <a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> and tightened up rules for compressing text.
2462+
<li>Defined better analysis of text to be combined.
24382463
<li>Various fixes/clarifications to orthogonal flows.
24392464
<li>Updated references to UTR50 and how this specification use its values.
2440-
<li>Removed interaction of <a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> and 'font-variant: full-width' and added a note instead.
24412465
</ul>
24422466

24432467
<h3 class="no-num heading settled heading" id=changes-201205><span class=content>
@@ -2834,7 +2858,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
28342858
<tr><th scope=row><a data-property="">writing-mode</a><td>horizontal-tb | vertical-rl | vertical-lr<td>horizontal-tb<td><td>yes<td>n/a<td>visual<td>no<td>All elements except table row groups, table column groups, table rows, and table columns<td>n/a<td>specified value<td>
28352859
<tr><th scope=row><a data-property="">text-orientation</a><td>mixed | upright | sideways-right | sideways-left | sideways | use-glyph-orientation<td>mixed<td><td>yes<td>n/a<td>visual<td>no<td>all elements except table row groups, rows, column groups, and columns<td>n/a<td>specified value<td>
28362860
<tr><th scope=row><a data-property="">caption-side</a><td><td><td><td><td><td><td><td><td><td><td>block-start | block-end
2837-
<tr><th scope=row><a data-property="">text-combine-horizontal</a><td>none | all | [ digits <integer>? ]</integer><td>none<td><td><a class=issue href=http://lists.w3.org/Archives/Public/www-style/2013Jul/0154.html id=issue-f63bb4f2><a class=self-link href=#issue-f63bb4f2></a>???</a><td>n/a<td>visual<td>no<td>non-replaced inline elements<td>n/a<td>specified keyword, plus integer if <span class=css data-link-type=maybe>digits</span><td></table></div>
2861+
<tr><th scope=row><a data-property="">text-combine-horizontal</a><td>none | all | [ digits <integer>? ]</integer><td>none<td><td>yes<td>n/a<td>visual<td>no<td>non-replaced inline elements<td>n/a<td>specified keyword, plus integer if <span class=css data-link-type=maybe>digits</span><td></table></div>
28382862

28392863

28402864
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><p class=issue>This section needs additional work. Suggestions are welcome.
@@ -2862,4 +2886,6 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
28622886
<a href=#issue-1a149873></a><p class=issue>
28632887
This section needs careful review for whether it is a) correct and b) sensible.
28642888

2865-
<a href=#issue-afa4af44></a></p><a class=issue href=http://lists.w3.org/Archives/Public/www-style/2013Jul/0154.html>???<a href=#issue-f63bb4f2></a></a><a class=issue href=http://lists.w3.org/Archives/Public/www-style/2013Jul/0154.html>???<a href=#issue-f63bb4f2></a></a></div>
2889+
<a href=#issue-afa4af44></a><p class=issue>The WG would appreciate a better (more obvious / more concise) name for this, if anyone can come up with one.
2890+
2891+
<a href=#issue-7f731b1a></a></div>

css-writing-modes/Overview.src.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,6 +2216,8 @@ <h3 id="text-combine-horizontal">
22162216
Animatable: no
22172217
Canonical order: n/a
22182218
</pre>
2219+
2220+
<p class="issue">The WG would appreciate a better (more obvious / more concise) name for this, if anyone can come up with one.
22192221

22202222
<p>This property specifies the combination of multiple characters into the space of a single character.
22212223
If the combined text is wider than 1em, the UA must fit the contents within 1em, see below.
@@ -2242,11 +2244,12 @@ <h3 id="text-combine-horizontal">
22422244
<a href="#script-orientations">vertical script</a>.
22432245
-->
22442246
<dt><dfn value for=text-combine-horizontal>digits <var>&lt;integer></var>?</dfn>
2245-
<dd>Within the element, each maximal sequence of consecutive ASCII digits (U+0030&ndash;U+0039)
2247+
<dd>Within the element,
2248+
attempt to typeset each maximal sequence of consecutive ASCII digits (U+0030&ndash;U+0039)
22462249
that has as many or fewer characters than the integer given
2247-
is typeset horizontally within the vertical line box,
2250+
horizontally within the vertical line box,
22482251
such that it takes up the space of a single character.
2249-
When the integer is omitted, 2 is used.
2252+
When the integer is omitted, it computes to 2.
22502253
Integers outside the range 2-4 are invalid.
22512254
<!--
22522255
<dt><dfn value for=text-combine-horizontal>alpha</dfn>

0 commit comments

Comments
 (0)