@@ -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 <string>
2003- value; if it is not given, it defaults to ‘< code
2004- class =css > right</ code > ’. 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 ‘< code
2018- class =css > center</ code > ’, 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 ‘< code
2027- class =css > left</ code > ’, the rightmost column for ‘< code
2028- class =css > right</ code > ’ and ‘< code
2029- class =css > center</ code > ’, the startmost column for ‘< code
2030- class =css > start</ code > ’, the endmost column for ‘< code
2031- class =css > end</ code > ’.
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 <string>
2027+ value; if it is not given, it defaults to ‘< code
2028+ class =css > right</ code > ’. 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 ‘< code
2039+ class =css > left</ code > ’, the rightmost column for ‘< code
2040+ class =css > right</ code > ’ and ‘< code
2041+ class =css > center</ code > ’, the startmost column for ‘< code
2042+ class =css > start</ code > ’, the endmost column for ‘< code
2043+ class =css > end</ code > ’.
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 ‘< code
2051+ class =css > center</ code > ’, 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 ‘< a href ="#text-align-last0 "> < code
20772077 class =property > text-align-last</ code > </ a > ’ property</ h3 >
0 commit comments