Skip to content

Commit 17f886d

Browse files
committed
[css-text-4] fix duplicate anchor
1 parent 8a254f9 commit 17f886d

File tree

2 files changed

+80
-77
lines changed

2 files changed

+80
-77
lines changed

css-text-4/Overview.html

100755100644
Lines changed: 79 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
rel=dcterms.rights>
1212
<meta content="CSS Text Level 4" name=dcterms.title>
1313
<meta content=text name=dcterms.type>
14-
<meta content=2012-10-28 name=dcterms.issued>
14+
<meta content=2012-10-28 name=dcterms.date>
1515
<meta content="Elika J. Etemad" name=dcterms.creator>
1616
<meta content="Koji Ishii" name=dcterms.creator>
1717
<meta content=W3C name=dcterms.publisher>
18-
<meta content="http://www.w3.org/TR/2012/ED-css3-text-20121028/"
19-
name=dcterms.identifier>
18+
<meta content="http://dev.w3.org/csswg/css3-text/" name=dcterms.identifier>
2019
<link href="../default.css" rel=stylesheet type="text/css">
2120
<style type="text/css">
2221
.egbidiwsaA,.egbidiwsbB,.egbidiwsaB,.egbidiwsbC
@@ -66,11 +65,14 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 October
6665
<dd><a
6766
href="http://www.w3.org/TR/2011/WD-css3-text-20110901/">http://www.w3.org/TR/2011/WD-css3-text-20110901/</a>
6867

69-
<dt>Feedback:</dt>
70-
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-text%5D%20feedback">www-style@w3.org</a>
71-
with subject line &ldquo;<kbd>[css-text]
72-
<var>&hellip; message topic &hellip;</var></kbd>&rdquo;
73-
(<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/">archives</a>)
68+
<dt>Feedback:
69+
70+
<dd><a
71+
href="mailto:www-style@w3.org?subject=%5Bcss-text%5D%20feedback">www-style@w3.org</a>
72+
with subject line “<kbd>[css-text] <var>… message topic
73+
</var></kbd>” (<a
74+
href="http://lists.w3.org/Archives/Public/www-style/"
75+
rel=discussion>archives</a>)
7476

7577
<dt>Editors:
7678

@@ -89,7 +91,8 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 October
8991
title="Massachusetts Institute of Technology">MIT</abbr></a>, <a
9092
href="http://www.ercim.eu/"><abbr
9193
title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
92-
<a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a
94+
<a href="http://www.keio.ac.jp/">Keio</a>, <a
95+
href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. W3C <a
9396
href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
9497
<a
9598
href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
@@ -304,7 +307,7 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2>
304307
the ‘<code class=property>text-align</code>’ property</a>
305308
<ul class=toc>
306309
<li><a href="#character-alignment"><span class=secno>7.1.1.
307-
</span>Details on Character-based Alignment in a Table Column</a>
310+
</span>Character-based Alignment in a Table Column</a>
308311
</ul>
309312

310313
<li><a href="#text-align-last"><span class=secno>7.2. </span> Last Line
@@ -346,8 +349,8 @@ <h2 class="no-num no-toc" id=contents> Table of Contents</h2>
346349
class=property>hanging-punctuation</code>’ property</a>
347350
</ul>
348351

349-
<li><a href="#decoration"><span class=secno>10. </span> Text
350-
Decoration</a>
352+
<li><a href="#decoration"><span class=secno>10. </span>Text Decoration</a>
353+
351354
<ul class=toc>
352355
<li><a href="#line-decoration"><span class=secno>10.1. </span> Line
353356
Decoration: Underline, Overline, and Strike-Through</a>
@@ -2424,57 +2427,15 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
24242427
href="http://dev.w3.org/csswg/css3-text/#white-space-rules">white space
24252428
processing rules</a>.
24262429

2427-
<h4 id=character-alignment><span class=secno>7.1.1. </span>Details on
2428-
Character-based Alignment in a Table Column</h4>
2429-
2430-
<p>When multiple cells in a column have an alignment character specified,
2431-
the alignment character of each such cell in the column is centered along
2432-
a single column-parallel axis and the rest of the text in the column
2433-
shifted accordingly. (Note that the strings do not have to be the same for
2434-
each cell, although they usually are.)
2435-
2436-
<p>If the alignment character appears more than once in the text, the first
2437-
instance is used for alignment. If the alignment character does not appear
2438-
in a cell at all, the string is aligned as if the alignment character had
2439-
been inserted at the end of its contents.
2430+
<h4 id=character-alignment><span class=secno>7.1.1. </span>Character-based
2431+
Alignment in a Table Column</h4>
24402432

2441-
<p>Character-based alignment occurs before table cell width computation so
2442-
that auto width computations can leave enough space for alignment. Whether
2443-
column-spanning cells participate in the alignment prior to or after width
2444-
computation is undefined. If width constraints on the cell contents
2445-
prevent full alignment throughout the column, the resulting alignment is
2446-
undefined.
2447-
2448-
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
2449-
value; if it is not given, it defaults to ‘<code
2450-
class=css>right</code>’. This value is used:
2451-
2452-
<ul>
2453-
<li>when character-based alignment is applied to boxes that are not table
2454-
cells.
2455-
2456-
<li>when the text wraps to multiple lines (at unforced break points).
2457-
2458-
<li>when the column is wide enough that the character alignment alone does
2459-
not determine the positions of its character-aligned contents. In this
2460-
case the keyword alignment of the first cell in the column with a
2461-
specified alignment character is used to slide the position of the
2462-
character-aligned contents to match the keyword alignment insofar as
2463-
possible without changing the width of the column. For ‘<code
2464-
class=css>center</code>’, the UA may center the aligned contents using
2465-
its extremes, center the alignment axis itself (insofar as possible), or
2466-
optically center the aligned contents some other way (such as by taking a
2467-
weighted average of the extent of the cells' contents to either side of
2468-
the axis).
2469-
2470-
<li>when a character-aligned cell spans more than one column. In this case
2471-
the keyword alignment value is used to determine which column's axis to
2472-
align with: the leftmost column for ‘<code class=css>left</code>’,
2473-
the rightmost column for ‘<code class=css>right</code>’ and ‘<code
2474-
class=css>center</code>’, the startmost column for ‘<code
2475-
class=css>start</code>’, the endmost column for ‘<code
2476-
class=css>end</code>’.
2477-
</ul>
2433+
<p>When multiple cells in a column have an <a
2434+
href="#alignment-character"><i>alignment character</i></a> specified, the
2435+
alignment character of each such cell in the column is centered along a
2436+
single column-parallel axis and the rest of the text in the column shifted
2437+
accordingly. (Note that the strings do not have to be the same for each
2438+
cell, although they usually are.)
24782439

24792440
<div class=example> The following style sheet:
24802441
<pre>TD { text-align: "." center }</pre>
@@ -2512,11 +2473,54 @@ <h4 id=character-alignment><span class=secno>7.1.1. </span>Details on
25122473
<!-- --></pre>
25132474
</div>
25142475

2476+
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
2477+
value; if it is not given, it defaults to ‘<code
2478+
class=css>right</code>’. This value is used:
2479+
2480+
<ul>
2481+
<li>when character-based alignment is applied to boxes that are not table
2482+
cells.
2483+
2484+
<li>when the text wraps to multiple lines (at unforced break points).
2485+
2486+
<li>when a character-aligned cell spans more than one column. In this case
2487+
the keyword alignment value is used to determine which column's axis to
2488+
align with: the leftmost column for ‘<code class=css>left</code>’,
2489+
the rightmost column for ‘<code class=css>right</code>’ and ‘<code
2490+
class=css>center</code>’, the startmost column for ‘<code
2491+
class=css>start</code>’, the endmost column for ‘<code
2492+
class=css>end</code>’.
2493+
2494+
<li>when the column is wide enough that the character alignment alone does
2495+
not determine the positions of its character-aligned contents. In this
2496+
case the keyword alignment of the first cell in the column with a
2497+
specified alignment character is used to slide the position of the
2498+
character-aligned contents to match the keyword alignment insofar as
2499+
possible without changing the width of the column. For ‘<code
2500+
class=css>center</code>’, the UA may center the aligned contents using
2501+
its extremes, center the alignment axis itself (insofar as possible), or
2502+
optically center the aligned contents some other way (such as by taking a
2503+
weighted average of the extent of the cells' contents to either side of
2504+
the axis).
2505+
</ul>
2506+
25152507
<p class=note>Right alignment is used by default for character-based
25162508
alignment because numbering systems are almost all left-to-right even in
25172509
right-to-left writing systems, and the primary use case of character-based
25182510
alignment is for numerical alignment.
25192511

2512+
<p>If the alignment character appears more than once in the text, the first
2513+
instance is used for alignment. If the alignment character does not appear
2514+
in a cell at all, the string is aligned as if the alignment character had
2515+
been inserted at the end of its contents.
2516+
2517+
<p>Character-based alignment occurs before table cell width computation so
2518+
that auto width computations can leave enough space for alignment. Whether
2519+
column-spanning cells participate in the alignment prior to or after width
2520+
computation is undefined. If width constraints on the cell contents
2521+
prevent full alignment throughout the column, the resulting alignment is
2522+
undefined.
2523+
25202524
<h3 id=text-align-last><span class=secno>7.2. </span> Last Line Alignment:
25212525
the ‘<a href="#text-align-last0"><code
25222526
class=property>text-align-last</code></a>’ property</h3>
@@ -4138,8 +4142,7 @@ <h3 id=hanging-punctuation><span class=secno>9.2. </span> Hanging
41384142
hanging punctuation. Therefore the line is expanded.
41394143
</div>
41404144

4141-
<h2 id=decoration><span class=secno>10. </span> <a
4142-
name=text-decoration>Text Decoration</a></h2>
4145+
<h2 id=decoration><span class=secno>10. </span>Text Decoration</h2>
41434146

41444147
<h3 id=line-decoration><span class=secno>10.1. </span> Line Decoration:
41454148
Underline, Overline, and Strike-Through</h3>
@@ -5891,26 +5894,26 @@ <h3 class=no-num id=normative-ref>Normative references</h3>
58915894
<!-- Sorted by label -->
58925895

58935896
<dl class=bibliography>
5894-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
5897+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
58955898
<!---->
58965899

58975900
<dt id=CSS21>[CSS21]
58985901

58995902
<dd>Bert Bos; et al. <a
5900-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/"><cite>Cascading Style
5903+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style
59015904
Sheets Level 2 Revision 1 (CSS 2.1) Specification.</cite></a> 7 June
59025905
2011. W3C Recommendation. URL: <a
5903-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/">http://www.w3.org/TR/2011/REC-CSS2-20110607/</a>
5906+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
59045907
</dd>
59055908
<!---->
59065909

59075910
<dt id=CSS3-FONTS>[CSS3-FONTS]
59085911

59095912
<dd>John Daggett. <a
5910-
href="http://www.w3.org/TR/2012/WD-css3-fonts-20120823/"><cite>CSS Fonts
5911-
Module Level 3.</cite></a> 23 August 2012. W3C Working Draft. (Work in
5913+
href="http://www.w3.org/TR/2013/WD-css3-fonts-20130212/"><cite>CSS Fonts
5914+
Module Level 3.</cite></a> 12 February 2013. W3C Working Draft. (Work in
59125915
progress.) URL: <a
5913-
href="http://www.w3.org/TR/2012/WD-css3-fonts-20120823/">http://www.w3.org/TR/2012/WD-css3-fonts-20120823/</a>
5916+
href="http://www.w3.org/TR/2013/WD-css3-fonts-20130212/">http://www.w3.org/TR/2013/WD-css3-fonts-20130212/</a>
59145917
</dd>
59155918
<!---->
59165919

@@ -5975,7 +5978,7 @@ <h3 class=no-num id=normative-ref>Normative references</h3>
59755978

59765979
<dd>Mark Davis. <a
59775980
href="http://www.unicode.org/reports/tr29/"><cite>Unicode Text
5978-
Segmentation.</cite></a> 24 January 2012. Unicode Standard Annex #29.
5981+
Segmentation.</cite></a> 12 September 2012. Unicode Standard Annex #29.
59795982
URL: <a
59805983
href="http://www.unicode.org/reports/tr29/">http://www.unicode.org/reports/tr29/</a>
59815984
</dd>
@@ -5994,9 +5997,10 @@ <h3 class=no-num id=normative-ref>Normative references</h3>
59945997

59955998
<dd>The Unicode Consortium. <a
59965999
href="http://www.unicode.org/standard/versions/enumeratedversions.html"><cite>The
5997-
Unicode Standard.</cite></a> 2003. Defined by: The Unicode Standard,
5998-
Version 4.0 (Boston, MA, Addison-Wesley, ISBN 0-321-18578-1), as updated
5999-
from time to time by the publication of new versions URL: <a
6000+
Unicode Standard.</cite></a> 2012. Defined by: The Unicode Standard,
6001+
Version 6.2.0 (Mountain View, CA: The Unicode Consortium, 2012. ISBN
6002+
978-1-936213-07-8), as updated from time to time by the publication of
6003+
new versions URL: <a
60006004
href="http://www.unicode.org/standard/versions/enumeratedversions.html">http://www.unicode.org/standard/versions/enumeratedversions.html</a>
60016005
</dd>
60026006
<!---->
@@ -6008,7 +6012,7 @@ <h3 class=no-num id=informative-ref>Informative references</h3>
60086012
<!-- Sorted by label -->
60096013

60106014
<dl class=bibliography>
6011-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
6015+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
60126016
<!---->
60136017

60146018
<dt id=CSS3COLOR>[CSS3COLOR]

css-text-4/Overview.src.html

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,8 +2996,7 @@ <h3 id="hanging-punctuation">
29962996
Therefore the line is expanded.</p>
29972997
</div>
29982998

2999-
<h2 id="decoration">
3000-
<a name="text-decoration">Text Decoration</a></h2>
2999+
<h2 id="decoration">Text Decoration</h2>
30013000

30023001
<h3 id="line-decoration">
30033002
Line Decoration: Underline, Overline, and Strike-Through</h3>

0 commit comments

Comments
 (0)