Skip to content

Commit b7baecb

Browse files
committed
text-align: <string> falls back to 'end', not 'start'. Allow keyword + string. Add issues.
1 parent 66a3138 commit b7baecb

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

css3-text/Overview.src.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ <h3 id="text-align"><span class="secno">6.1.</span>
11101110
</tr>
11111111
<tr>
11121112
<th>Value:</th>
1113-
<td>start | end | left | right | center | justify |
1113+
<td>[start | end | left | right | center | justify ] ||
11141114
<a class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string"><span class="value-inst-string">&lt;string&gt;</span></a>
11151115
</td>
11161116
</tr>
@@ -1166,13 +1166,21 @@ <h3 id="text-align"><span class="secno">6.1.</span>
11661166
<dt><dfn title="text-align:<string>"><code><span title="&lt;string&gt;"><a
11671167
class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string"
11681168
><span class="value-inst-string">&lt;string&gt;</span></a></span></code></dfn></dt>
1169-
<dd>When applied to a table cell, specifies a character on which all
1170-
cells in its table column that also have a character value for 'text-align'
1169+
<dd>The string must be a single character; otherwise the declaration must
1170+
be <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
1171+
When applied to a table cell, specifies a character on which all cells
1172+
in its table column that also have a character value for 'text-align'
11711173
will align (see the section on <a href="http://www.w3.org/TR/CSS21/tables.html#column-alignment">horizontal
1172-
alignment in a column</a> for details and an example). When applied
1173-
to any other element, it is treated as 'start'. The string must be
1174-
a single character; otherwise the declaration must be
1175-
<a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.</dd>
1174+
alignment in a column</a> for details and an example).
1175+
If a keyword value is also given, it is used when the value is applied
1176+
to other elements, or when the character is not present in the text.
1177+
If a keyword value is not also given, these cases are treated the same
1178+
as 'end'.
1179+
<span class="issue">Define what happens when string appears more than
1180+
once in text. Define what happens when the line wraps. Define how cells
1181+
align if e.g. they all align on '.', but the col is 10em wide and no
1182+
cell contains more than 3 chars.</span>
1183+
</dd>
11761184
</dl>
11771185

11781186
<p>A block of text is a stack of

0 commit comments

Comments
 (0)