Skip to content

Commit a36be2a

Browse files
committed
[css-text-4] Rename avoid-orphans to avoid-short-last-line #11283
1 parent a2269e2 commit a36be2a

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

css-text-4/Overview.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5532,7 +5532,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
55325532

55335533
<pre class="propdef">
55345534
Name: text-wrap-style
5535-
Value: auto | balance | stable | pretty | avoid-orphans
5535+
Value: auto | balance | stable | pretty | avoid-short-last-line
55365536
Initial: auto
55375537
Applies to: [=block containers=] hat establish an [=inline formatting context=]
55385538
Inherited: yes
@@ -5541,8 +5541,6 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
55415541
Animation type: discrete
55425542
</pre>
55435543

5544-
Issue: The CSSWG is looking for a better name for ''avoid-orphans''.
5545-
55465544
<wpt>
55475545
parsing/text-wrap-style-computed.html
55485546
parsing/text-wrap-style-invalid.html
@@ -5653,7 +5651,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
56535651

56545652
The user agent may among other things
56555653
attempt to avoid excessively short last lines,
5656-
similarly to ''avoid-orphans'',
5654+
similarly to ''avoid-short-last-line'',
56575655
but it should also improve the layout in additional ways.
56585656
The precise set of improvements is user agent dependent,
56595657
and may include things such as:
@@ -5670,7 +5668,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
56705668
and possibly use it selectively where it matters most.
56715669
</div>
56725670

5673-
<dt><dfn>avoid-orphans</dfn>
5671+
<dt><dfn>avoid-short-last-line</dfn>
56745672
<dd>
56755673
Specifies the UA <em>should</em> avoid excessively short last lines,
56765674
and is expected to consider more than one line
@@ -5703,7 +5701,7 @@ Selecting How to Wrap: the 'text-wrap-style' property</h3>
57035701
πολλὰ πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον
57045702
ἔπερσεν.
57055703
</pre>
5706-
Applying ''text-wrap-style: avoid-orphans'' could yield something like this instead,
5704+
Applying ''text-wrap-style: avoid-short-last-line'' could yield something like this instead,
57075705
which is arguably more pleasing:
57085706
<pre lang=grc style="border: solid lightgray 8px; border-bottom: none; border-top: none; width: 45ch;">
57095707
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς
@@ -5728,7 +5726,7 @@ Mississippi river
57285726
the penultimate line would be unsightly.
57295727
In such cases, user agents are expected
57305728
to prefer the first rendering
5731-
despite ''text-wrap-style: avoid-orphans'' being set.
5729+
despite ''text-wrap-style: avoid-short-last-line'' being set.
57325730
</div>
57335731
</dl>
57345732

@@ -5741,11 +5739,11 @@ Mississippi river
57415739
UAs can experiment with better line breaking algorithms
57425740
with this default value,
57435741
but as optimal results often take more time,
5744-
''text-wrap-style/pretty'' and ''avoid-orphans'' are offered as opt-ins
5742+
''text-wrap-style/pretty'' and ''avoid-short-last-line'' are offered as opt-ins
57455743
to take more time for better results.
57465744
Both values are intended for body text,
57475745
where the last line is expected to be a bit shorter than the average line,
5748-
but ''avoid-orphans'' aims to avoid excessively short last lines while staying performant,
5746+
but ''avoid-short-last-line'' aims to avoid excessively short last lines while staying performant,
57495747
while ''pretty'' can sacrifice more speed in pursuit of even better layout;
57505748
the ''text-wrap-style/balance'' value is intended for titles and captions,
57515749
where equal-length lines of text tend to be preferred;
@@ -13338,13 +13336,15 @@ Changes</h2>
1333813336
Changes specific to Level 4 are listed below.
1333913337

1334013338
Significant changes since the <a href="https://www.w3.org/TR/2026/WD-css-text-4-20260608/">8 June 2026 Working Draft</a> include:
13341-
* Exclude East Asian Wide (W) from [=non-ideographic letters=].
13339+
* Renamed <css>avoid-orphans</css> to ''avoid-short-last-line''.
13340+
(<a href="https://github.com/w3c/csswg-drafts/issues/11283">Issue 11283</a>)
13341+
* Excluded East Asian Wide (W) from [=non-ideographic letters=].
1334213342
(<a href="https://github.com/w3c/csswg-drafts/issues/9979">Issue 9979</a>)
13343-
* Clarify that 'text-autospace' has no effect on plain-text copy &amp; paste.
13343+
* Clarified that 'text-autospace' has no effect on plain-text copy &amp; paste.
1334413344
(<a href="https://github.com/w3c/csswg-drafts/issues/8511">Issue 8511</a>)
1334513345

1334613346
Significant changes since the <a href="https://www.w3.org/TR/2024/WD-css-text-4-2024052">29 May 2024 Working Draft</a> include:
13347-
* Added ''avoid-orphans'' to 'text-wrap-style'.
13347+
* Added <css>avoid-orphans</css> to 'text-wrap-style'.
1334813348
(<a href="https://github.com/w3c/csswg-drafts/issues/10837">Issue 10837</a>)
1334913349
* Added <{listing}>, <{xmp}>, and <{plaintext}> to the list of elements assigned ''text-spacing: none'' in the default UA stylesheet.
1335013350
(<a href="https://github.com/w3c/csswg-drafts/issues/13369">Issue 13369</a>)

0 commit comments

Comments
 (0)