Skip to content

Commit 181f2b1

Browse files
committed
[css-text] Add issue text wrt text-align / text-align-last interaction to solicit feedback.
1 parent 06b240f commit 181f2b1

3 files changed

Lines changed: 54 additions & 9 deletions

File tree

css-text/Overview.html

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,39 @@ <h2 id=justification><span class=secno>7. </span> Alignment and
18601860
<p>Alignment and justification controls how inline content is distributed
18611861
within a line box.
18621862

1863+
<div class=issue>
1864+
<p>There's a proposal for ‘<a href="#text-align0"><code
1865+
class=property>text-align</code></a>’ to become a shorthand for ‘<a
1866+
href="#text-align-last0"><code
1867+
class=property>text-align-last</code></a>’ and ‘<code
1868+
class=property>text-align-all</code>’. This has the advantage that
1869+
<a href="#text-align-last0"><code
1870+
class=property>text-align-last</code></a>’ can be set in a single
1871+
declaration with ‘<a href="#text-align0"><code
1872+
class=property>text-align</code></a>’, e.g. ‘<code
1873+
class=css>text-align: justify-all</code>’ (justify align all lines) or
1874+
<code class=css>text-align: justify center</code>’ (justify all
1875+
lines except center last line). It has the disadvantage of creating the
1876+
<code class=property>text-align-all</code>’ property. There are also
1877+
some cascading considerations: if ‘<a href="#text-align-last0"><code
1878+
class=property>text-align-last</code></a>’ is part of the shorthand,
1879+
then any declaration of ‘<a href="#text-align0"><code
1880+
class=property>text-align</code></a>’ will reset it; it's unclear if
1881+
this is an advantage or a disadvantage.
1882+
1883+
<p>The CSSWG has no strong opinion on this issue, and solicits feedback
1884+
from others. We unfortunately can't <em>drop</em><a
1885+
href="#text-align-last0"><code
1886+
class=property>text-align-last</code></a>’ in favor of an expanded
1887+
value set in ‘<a href="#text-align0"><code
1888+
class=property>text-align</code></a>’ because of existing content and
1889+
implementations. However, because authors have a pattern of typing ‘<a
1890+
href="#text-align-last0"><code
1891+
class=property>text-align-last</code></a>’ after ‘<a
1892+
href="#text-align0"><code class=property>text-align</code></a>’, we can
1893+
change their interaction without breaking content.
1894+
</div>
1895+
18631896
<h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
18641897
href="#text-align0"><code class=property>text-align</code></a>’ property</h3>
18651898

@@ -3527,12 +3560,9 @@ <h3 class=no-num id=recent-changes> Changes from the <a
35273560
class=property>text-justify</code></a>’.
35283561

35293562
<li>Dropped minimum and maximum values in ‘<a
3530-
href="#letter-spacing0"><code
3531-
class=property>letter-spacing</code></a>’.
3532-
3533-
<li>Changed interpretation of three-value syntax in ‘<a
3534-
href="#word-spacing0"><code class=property>word-spacing</code></a>’ to
3535-
default missing values to ‘<code class=css>normal</code>’.
3563+
href="#letter-spacing0"><code class=property>letter-spacing</code></a>
3564+
and ‘<a href="#word-spacing0"><code
3565+
class=property>word-spacing</code></a>’.
35363566

35373567
<li>Removed <var>&lt;string&gt;</var> value of ‘<a
35383568
href="#text-align0"><code class=property>text-align</code></a>’.

css-text/Overview.src.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,22 @@ <h2 id="justification">
13341334

13351335
<p>Alignment and justification controls how inline content is distributed within a line box.
13361336

1337+
<div class="issue">
1338+
<p>There's a proposal for 'text-align' to become a shorthand for 'text-align-last' and 'text-align-all'.
1339+
This has the advantage that 'text-align-last' can be set in a single declaration with 'text-align',
1340+
e.g. ''text-align: justify-all'' (justify align all lines) or ''text-align: justify center'' (justify all lines except center last line).
1341+
It has the disadvantage of creating the 'text-align-all' property.
1342+
There are also some cascading considerations:
1343+
if 'text-align-last' is part of the shorthand, then any declaration of 'text-align' will reset it;
1344+
it's unclear if this is an advantage or a disadvantage.
1345+
1346+
<p>The CSSWG has no strong opinion on this issue, and solicits feedback from others.
1347+
We unfortunately can't <em>drop</em> 'text-align-last' in favor of an expanded value set in 'text-align'
1348+
because of existing content and implementations.
1349+
However, because authors have a pattern of typing 'text-align-last' after 'text-align',
1350+
we can change their interaction without breaking content.
1351+
</div>
1352+
13371353
<h3 id="text-align">
13381354
Text Alignment: the 'text-align' property</h3>
13391355

@@ -2611,8 +2627,7 @@ <h3 class="no-num" id="recent-changes">
26112627
<p>Major changes include:
26122628
<ul>
26132629
<li>Removed ''inter-ideograph'', ''inter-cluster'', and ''kashida'' values of 'text-justify'.
2614-
<li>Dropped minimum and maximum values in 'letter-spacing'.
2615-
<li>Changed interpretation of three-value syntax in 'word-spacing' to default missing values to ''normal''.
2630+
<li>Dropped minimum and maximum values in 'letter-spacing' and 'word-spacing'.
26162631
<li>Removed <var>&lt;string&gt;</var> value of 'text-align'.
26172632
</ul>
26182633

css-writing-modes/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ <h3 id="text-combine-horizontal">
22192219

22202220
<p>This property specifies the combination of multiple characters into the space of a single character.
22212221
If the combined text is wider than 1em, the UA must fit the contents within 1em, see below.
2222-
The resulting composition is treated as a single glyph for the purposes of layout and decoration.
2222+
The resulting composition is treated as a single upright glyph for the purposes of layout and decoration.
22232223
This property only has an effect in vertical writing modes. Values have the following meanings:
22242224

22252225
<dl>

0 commit comments

Comments
 (0)