Skip to content

Commit 402f560

Browse files
committed
Reorder paragraphs in text-align: <string> section to put less technical bits at the top
1 parent 5efd48c commit 402f560

2 files changed

Lines changed: 82 additions & 82 deletions

File tree

css3-text/Overview.html

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 12 January
3535
<dl>
3636
<dt>This version:
3737

38-
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/10
39-
01:27:22 $ (CVS $Revision$)</a> <!--
38+
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/12
39+
01:48:25 $ (CVS $Revision$)</a> <!--
4040
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120112/">http://www.w3.org/TR/2012/WD-css3-text-20120112/</a></dd>
4141
-->
4242

@@ -1987,50 +1987,6 @@ <h4 id=character-alignment><span class=secno>7.1.1. </span>Character-based
19871987
accordingly. (Note that the strings do not have to be the same for each
19881988
cell, although they usually are.)
19891989

1990-
<p>If the alignment character appears more than once in the text, the first
1991-
instance is used for alignment. If the alignment character does not appear
1992-
in a cell at all, the string is aligned as if the alignment character had
1993-
been inserted at the end of its contents.
1994-
1995-
<p>Character-based alignment occurs before table cell width computation so
1996-
that auto width computations can leave enough space for alignment. Whether
1997-
column-spanning cells participate in the alignment prior to or after width
1998-
computation is undefined. If width constraints on the cell contents
1999-
prevent full alignment throughout the column, the resulting alignment is
2000-
undefined.
2001-
2002-
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
2003-
value; if it is not given, it defaults to &lsquo;<code
2004-
class=css>right</code>&rsquo;. This value is used:
2005-
2006-
<ul>
2007-
<li>when character-based alignment is applied to boxes that are not table
2008-
cells.
2009-
2010-
<li>when the text wraps to multiple lines (at unforced break points).
2011-
2012-
<li>when the column is wide enough that the character alignment alone does
2013-
not determine the positions of its character-aligned contents. In this
2014-
case the keyword alignment of the first cell in the column with a
2015-
specified alignment character is used to slide the position of the
2016-
character-aligned contents to match the keyword alignment insofar as
2017-
possible without changing the width of the column. For &lsquo;<code
2018-
class=css>center</code>&rsquo;, the UA may center the aligned contents
2019-
using its extremes, center the alignment axis itself (insofar as
2020-
possible), or optically center the aligned contents some other way (such
2021-
as by taking a weighted average of the extent of the cells' contents to
2022-
either side of the axis).
2023-
2024-
<li>when a character-aligned cell spans more than one column. In this case
2025-
the keyword alignment value is used to determine which column's axis to
2026-
align with: the leftmost column for &lsquo;<code
2027-
class=css>left</code>&rsquo;, the rightmost column for &lsquo;<code
2028-
class=css>right</code>&rsquo; and &lsquo;<code
2029-
class=css>center</code>&rsquo;, the startmost column for &lsquo;<code
2030-
class=css>start</code>&rsquo;, the endmost column for &lsquo;<code
2031-
class=css>end</code>&rsquo;.
2032-
</ul>
2033-
20341990
<div class=example> The following style sheet:
20351991
<pre>TD { text-align: "." center }</pre>
20361992
will cause the column of dollar figures in the following HTML table:
@@ -2067,11 +2023,55 @@ <h4 id=character-alignment><span class=secno>7.1.1. </span>Character-based
20672023
<!-- --></pre>
20682024
</div>
20692025

2026+
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
2027+
value; if it is not given, it defaults to &lsquo;<code
2028+
class=css>right</code>&rsquo;. This value is used:
2029+
2030+
<ul>
2031+
<li>when character-based alignment is applied to boxes that are not table
2032+
cells.
2033+
2034+
<li>when the text wraps to multiple lines (at unforced break points).
2035+
2036+
<li>when a character-aligned cell spans more than one column. In this case
2037+
the keyword alignment value is used to determine which column's axis to
2038+
align with: the leftmost column for &lsquo;<code
2039+
class=css>left</code>&rsquo;, the rightmost column for &lsquo;<code
2040+
class=css>right</code>&rsquo; and &lsquo;<code
2041+
class=css>center</code>&rsquo;, the startmost column for &lsquo;<code
2042+
class=css>start</code>&rsquo;, the endmost column for &lsquo;<code
2043+
class=css>end</code>&rsquo;.
2044+
2045+
<li>when the column is wide enough that the character alignment alone does
2046+
not determine the positions of its character-aligned contents. In this
2047+
case the keyword alignment of the first cell in the column with a
2048+
specified alignment character is used to slide the position of the
2049+
character-aligned contents to match the keyword alignment insofar as
2050+
possible without changing the width of the column. For &lsquo;<code
2051+
class=css>center</code>&rsquo;, the UA may center the aligned contents
2052+
using its extremes, center the alignment axis itself (insofar as
2053+
possible), or optically center the aligned contents some other way (such
2054+
as by taking a weighted average of the extent of the cells' contents to
2055+
either side of the axis).
2056+
</ul>
2057+
20702058
<p class=note>Right alignment is used by default for character-based
20712059
alignment because numbering systems are almost all left-to-right even in
20722060
right-to-left writing systems, and the primary use case of character-based
20732061
alignment is for numerical alignment.
20742062

2063+
<p>If the alignment character appears more than once in the text, the first
2064+
instance is used for alignment. If the alignment character does not appear
2065+
in a cell at all, the string is aligned as if the alignment character had
2066+
been inserted at the end of its contents.
2067+
2068+
<p>Character-based alignment occurs before table cell width computation so
2069+
that auto width computations can leave enough space for alignment. Whether
2070+
column-spanning cells participate in the alignment prior to or after width
2071+
computation is undefined. If width constraints on the cell contents
2072+
prevent full alignment throughout the column, the resulting alignment is
2073+
undefined.
2074+
20752075
<h3 id=text-align-last><span class=secno>7.2. </span> Last Line Alignment:
20762076
the &lsquo;<a href="#text-align-last0"><code
20772077
class=property>text-align-last</code></a>&rsquo; property</h3>

css3-text/Overview.src.html

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,42 +1386,6 @@ <h4 id="character-alignment">Character-based Alignment in a Table Column</h4>
13861386
shifted accordingly. (Note that the strings do not have to be the same
13871387
for each cell, although they usually are.)
13881388

1389-
<p>If the alignment character appears more than once in the text, the first
1390-
instance is used for alignment. If the alignment character does not appear
1391-
in a cell at all, the string is aligned as if the alignment character had
1392-
been inserted at the end of its contents.
1393-
1394-
<p>Character-based alignment occurs before table cell width computation so
1395-
that auto width computations can leave enough space for alignment.
1396-
Whether column-spanning cells participate in the alignment prior to
1397-
or after width computation is undefined.
1398-
If width constraints on the cell contents prevent full alignment
1399-
throughout the column, the resulting alignment is undefined.
1400-
1401-
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
1402-
value; if it is not given, it defaults to ''right''. This value is used:
1403-
<ul>
1404-
<li>when character-based alignment is applied to boxes that are not table
1405-
cells.
1406-
<li>when the text wraps to multiple lines (at unforced break points).
1407-
<li>when the column is wide enough that the character alignment alone does
1408-
not determine the positions of its character-aligned contents. In this
1409-
case the keyword alignment of the first cell in the column with a
1410-
specified alignment character is used to slide the position of the
1411-
character-aligned contents to match the keyword alignment insofar as
1412-
possible without changing the width of the column.
1413-
For ''center'', the UA may center
1414-
the aligned contents using its extremes, center the alignment axis
1415-
itself (insofar as possible), or optically center the aligned contents
1416-
some other way (such as by taking a weighted average of the extent of
1417-
the cells' contents to either side of the axis).
1418-
<li>when a character-aligned cell spans more than one column. In this
1419-
case the keyword alignment value is used to determine which column's
1420-
axis to align with: the leftmost column for ''left'', the rightmost
1421-
column for ''right'' and ''center'', the startmost column for ''start'',
1422-
the endmost column for ''end''.
1423-
</ul>
1424-
14251389
<div class="example">
14261390
The following style sheet:
14271391
<pre>TD { text-align: "." center }</pre>
@@ -1458,11 +1422,47 @@ <h4 id="character-alignment">Character-based Alignment in a Table Column</h4>
14581422
<!-- --></pre>
14591423
</div>
14601424

1425+
<p>A keyword value may be specified in conjunction with the &lt;string&gt;
1426+
value; if it is not given, it defaults to ''right''. This value is used:
1427+
<ul>
1428+
<li>when character-based alignment is applied to boxes that are not table
1429+
cells.
1430+
<li>when the text wraps to multiple lines (at unforced break points).
1431+
<li>when a character-aligned cell spans more than one column. In this
1432+
case the keyword alignment value is used to determine which column's
1433+
axis to align with: the leftmost column for ''left'', the rightmost
1434+
column for ''right'' and ''center'', the startmost column for ''start'',
1435+
the endmost column for ''end''.
1436+
<li>when the column is wide enough that the character alignment alone does
1437+
not determine the positions of its character-aligned contents. In this
1438+
case the keyword alignment of the first cell in the column with a
1439+
specified alignment character is used to slide the position of the
1440+
character-aligned contents to match the keyword alignment insofar as
1441+
possible without changing the width of the column.
1442+
For ''center'', the UA may center
1443+
the aligned contents using its extremes, center the alignment axis
1444+
itself (insofar as possible), or optically center the aligned contents
1445+
some other way (such as by taking a weighted average of the extent of
1446+
the cells' contents to either side of the axis).
1447+
</ul>
1448+
14611449
<p class="note">Right alignment is used by default for character-based
14621450
alignment because numbering systems are almost all left-to-right even
14631451
in right-to-left writing systems, and the primary use case of
14641452
character-based alignment is for numerical alignment.</p>
14651453

1454+
<p>If the alignment character appears more than once in the text, the first
1455+
instance is used for alignment. If the alignment character does not appear
1456+
in a cell at all, the string is aligned as if the alignment character had
1457+
been inserted at the end of its contents.
1458+
1459+
<p>Character-based alignment occurs before table cell width computation so
1460+
that auto width computations can leave enough space for alignment.
1461+
Whether column-spanning cells participate in the alignment prior to
1462+
or after width computation is undefined.
1463+
If width constraints on the cell contents prevent full alignment
1464+
throughout the column, the resulting alignment is undefined.
1465+
14661466
<h3 id="text-align-last">
14671467
Last Line Alignment: the 'text-align-last' property</h3>
14681468

0 commit comments

Comments
 (0)