Skip to content

Commit 5f5cc58

Browse files
committed
[css-text] Provide better guidance on 'text-justify: auto'
1 parent 54a0a91 commit 5f5cc58

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

css-text/Overview.bs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,16 +1430,18 @@ Canonical order: N/A
14301430
<dt><dfn>auto</dfn></dt>
14311431
<dd>The UA determines the justification algorithm to follow, based
14321432
on a balance between performance and adequate presentation quality.
1433-
<p class="note">One possible algorithm is to choose the appropriate justification behavior
1434-
based on the language of the paragraph
1433+
UAs should, where possible, use a justification algorithm appropriate to the text.
1434+
<p class="example">
1435+
For example, the UA could use by default a justification method that is a
1436+
simple universal compromise for all writing systems,
1437+
such as primarily expanding <i>word separators</i>
1438+
along with secondarily expanding between CJK and Southeast Asian <i>letters</i>.
1439+
Then, in cases where the content language of the paragraph is known,
1440+
it could choose a more language-tailored justification behavior
14351441
e.g. following [[JLREQ]] for Japanese,
14361442
using cursive elongation for Arabic,
14371443
using ''inter-word'' for English,
14381444
etc.
1439-
Another possibility is to use a justification method that is a
1440-
simple universal compromise for all writing systems,
1441-
such as primarily expanding <i>word separators</i>
1442-
along with secondarily expanding between CJK and Southeast Asian <i>letters</i>.
14431445

14441446
<div class="figure" id="fig-text-justify-cursive">
14451447
<p>

css-text/Overview.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,16 +1573,18 @@ <h3 class="heading settled heading" data-level=7.3 id=text-justify-property><spa
15731573
<dt><dfn class=css-code data-dfn-for=text-justify data-dfn-type=value data-export="" id=valuedef-auto>auto<a class=self-link href=#valuedef-auto></a></dfn></dt>
15741574
<dd>The UA determines the justification algorithm to follow, based
15751575
on a balance between performance and adequate presentation quality.
1576-
<p class=note>One possible algorithm is to choose the appropriate justification behavior
1577-
based on the language of the paragraph
1576+
UAs should, where possible, use a justification algorithm appropriate to the text.
1577+
<p class=example>
1578+
For example, the UA could use by default a justification method that is a
1579+
simple universal compromise for all writing systems,
1580+
such as primarily expanding <a data-link-type=dfn href=#word-separator title="word separators">word separators</a>
1581+
along with secondarily expanding between CJK and Southeast Asian <a data-link-type=dfn href=#letter0 title=letters>letters</a>.
1582+
Then, in cases where the content language of the paragraph is known,
1583+
it could choose a more language-tailored justification behavior
15781584
e.g. following <a data-biblio-type=informative data-link-type=biblio href=#jlreq title=jlreq>[JLREQ]</a> for Japanese,
15791585
using cursive elongation for Arabic,
15801586
using <a class=css data-link-type=maybe href=#valuedef-inter-word title=inter-word>inter-word</a> for English,
15811587
etc.
1582-
Another possibility is to use a justification method that is a
1583-
simple universal compromise for all writing systems,
1584-
such as primarily expanding <a data-link-type=dfn href=#word-separator title="word separators">word separators</a>
1585-
along with secondarily expanding between CJK and Southeast Asian <a data-link-type=dfn href=#letter0 title=letters>letters</a>.
15861588

15871589
<div class=figure id=fig-text-justify-cursive>
15881590
<p>

0 commit comments

Comments
 (0)