Skip to content

Commit 355b890

Browse files
committed
[css-text] Random editorial tweaks
1 parent f2b400e commit 355b890

2 files changed

Lines changed: 53 additions & 52 deletions

File tree

css-text/Overview.html

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,10 +1739,10 @@ <h3 id=overflow-wrap><span class=secno>6.2. </span> Overflow Wrapping: the
17391739
break point.
17401740
</dl>
17411741

1742-
<p><a href="#soft-wrap-opportunity"><i>Soft wrap opportunities</i></a> not
1743-
part of<code class=css>overflow-wrap: normal</code>line breaking
1744-
are not considered when calculating ‘<code
1745-
class=css>min-content</code>intrinsic sizes.
1742+
<p><a href="#soft-wrap-opportunity"><i>Soft wrap opportunities</i></a>
1743+
introduced by<code class=css>overflow-wrap: break-word</code>are
1744+
not considered when calculating ‘<code class=css>min-content</code>
1745+
intrinsic sizes.
17461746

17471747
<p>For legacy reasons, UAs must treat ‘<a href="#word-wrap"><code
17481748
class=property>word-wrap</code></a>’ as an alternate name for the ‘<a
@@ -1801,50 +1801,52 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
18011801
class=property>match-parent</code>’ which computes as defined below
18021802
</table>
18031803

1804-
<p>This property describes how inline contents of a block are aligned along
1805-
the inline axis if the contents do not completely fill the line box.
1806-
Values have the following meanings:
1804+
<p>This property describes how the inline-level content of a block is
1805+
aligned along the inline axis if the content does not completely fill the
1806+
line box. Values have the following meanings:
18071807

18081808
<dl>
18091809
<dt><dfn id=start title="text-align:start"><code
18101810
class=css>start</code></dfn>
18111811

1812-
<dd>The inline contents are aligned to the start edge of the line box.
1812+
<dd>Inline-level content is aligned to the start edge of the line box.
18131813

18141814
<dt><dfn id=end title="text-align:end"><code
18151815
class=css>end</code></dfn>
18161816

1817-
<dd>The inline contents are aligned to the end edge of the line box.
1817+
<dd>Inline-level content is aligned to the end edge of the line box.
18181818

18191819
<dt><dfn id=left title="text-align:left"><code
18201820
class=css>left</code></dfn>
18211821

1822-
<dd>The inline contents are aligned to the <a
1822+
<dd>Inline-level content is aligned to the <a
18231823
href="http://www.w3.org/TR/css3-writing-modes/#line-left">line left</a>
1824-
edge of the line box. (Note that in vertical writing modes, this will be
1825-
either the physical top or bottom.) <a href="#CSS3-WRITING-MODES"
1824+
edge of the line box. (In vertical writing modes, this will be either the
1825+
physical top or bottom, depending on ‘<code
1826+
class=property>text-orientation</code>’.) <a href="#CSS3-WRITING-MODES"
18261827
rel=biblioentry>[CSS3-WRITING-MODES]<!--{{CSS3-WRITING-MODES}}--></a>
18271828

18281829
<dt><dfn id=right title="text-align:right"><code
18291830
class=css>right</code></dfn>
18301831

1831-
<dd>The inline contents are aligned to the <a
1832+
<dd>Inline-level content is aligned to the <a
18321833
href="http://www.w3.org/TR/css3-writing-modes/#line-right">line right</a>
1833-
edge of the line box. (Note that in vertical writing modes, this will be
1834-
either the physical top or bottom.) <a href="#CSS3-WRITING-MODES"
1834+
edge of the line box. (In vertical writing modes, this will be either the
1835+
physical top or bottom, depending on ‘<code
1836+
class=property>text-orientation</code>’.) <a href="#CSS3-WRITING-MODES"
18351837
rel=biblioentry>[CSS3-WRITING-MODES]<!--{{CSS3-WRITING-MODES}}--></a>
18361838

18371839
<dt><dfn id=center title="text-align:center"><code
18381840
class=css>center</code></dfn>
18391841

1840-
<dd>The inline contents are centered within the line box.
1842+
<dd>Inline-level content is centered within the line box.
18411843

18421844
<dt><dfn id=justify title="text-align:justify"><code
18431845
class=css>justify</code></dfn>
18441846

1845-
<dd>The text is justified according to the method specified by the <a
1846-
class=property href="#text-justify"><code
1847-
class=property>text-justify</code></a> property. <!--
1847+
<dd>Text is justified according to the method specified by the <a
1848+
href="#text-justify0"><code class=property>text-justify</code></a>
1849+
property, in order to exactly fill the line box. <!--
18481850
<dt><dfn title="text-align:&lt;string>">''<span title="&lt;string&gt;"><a
18491851
class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string"
18501852
><span class="value-inst-string">&lt;string&gt;</span></a></span>''</dfn></dt>
@@ -1882,25 +1884,21 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the ‘<a
18821884
<p>A block of text is a stack of <a
18831885
href="http://www.w3.org/TR/CSS21/visuren.html#line-box">line boxes</a>.
18841886
This property specifies how the inline-level boxes within each line box
1885-
align with respect to the start and end sides of the line box: alignment
1887+
align with respect to the start and end sides of the line box. Alignment
18861888
is not with respect to the <a
18871889
href="http://www.w3.org/TR/CSS21/visuren.html#viewport">viewport</a> or
18881890
containing block.
18891891

18901892
<p>In the case of ‘<code class=css>justify</code>’, the UA may stretch
18911893
or shrink any inline boxes by <a href="#text-justify">adjusting</a> their
1892-
text in addition to shifting their positions. (See also ‘<a
1893-
href="#text-justify0"><code class=property>text-justify</code></a>’,
1894-
<a href="#letter-spacing0"><code
1895-
class=property>letter-spacing</code></a>’, and ‘<a
1896-
href="#word-spacing0"><code class=property>word-spacing</code></a>’.) If
1897-
an element's white space is not <a href="#collapse">collapsible</a>, then
1898-
the UA is not required to adjust its text for the purpose of justification
1899-
and may instead treat the text as having no <a
1900-
href="#expansion-opportunity"><i>expansion opportunities</i></a>. If the
1901-
UA chooses to adjust the text, then it must ensure that tab stops continue
1902-
to line up as required by the <a href="#white-space-rules">white space
1903-
processing rules</a>.
1894+
text. (See ‘<a href="#text-justify0"><code
1895+
class=property>text-justify</code></a>’.) If an element's white space is
1896+
not <a href="#collapse">collapsible</a>, then the UA is not required to
1897+
adjust its text for the purpose of justification and may instead treat the
1898+
text as having no <a href="#expansion-opportunity"><i>expansion
1899+
opportunities</i></a>. If the UA chooses to adjust the text, then it must
1900+
ensure that tab stops continue to line up as required by the <a
1901+
href="#white-space-rules">white space processing rules</a>.
19041902

19051903
<p>If (after justification, if any) the inline contents of a line box are
19061904
too long to fit within it, then the contents are start-aligned: any

css-text/Overview.src.html

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ <h3 id="overflow-wrap">
12641264
No hyphenation character is inserted at the break point.
12651265
</dl>
12661266

1267-
<p><i>Soft wrap opportunities</i> not part of ''overflow-wrap: normal'' line breaking
1267+
<p><i>Soft wrap opportunities</i> introduced by ''overflow-wrap: break-word''
12681268
are not considered when calculating ''min-content'' intrinsic sizes.
12691269

12701270
<p>For legacy reasons, UAs must treat 'word-wrap' as an alternate name
@@ -1313,30 +1313,35 @@ <h3 id="text-align">
13131313
</tr>
13141314
</table>
13151315

1316-
<p>This property describes how inline contents of a block are aligned along
1317-
the inline axis if the contents do not completely fill the line box.
1316+
<p>This property describes how the inline-level content of a block
1317+
is aligned along the inline axis
1318+
if the content does not completely fill the line box.
13181319
Values have the following meanings:</p>
13191320

13201321
<dl>
13211322
<dt><dfn title="text-align:start">''start''</dfn></dt>
1322-
<dd>The inline contents are aligned to the start edge of the line box.
1323+
<dd>Inline-level content is aligned to the start edge of the line box.
13231324
<dt><dfn title="text-align:end">''end''</dfn></dt>
1324-
<dd>The inline contents are aligned to the end edge of the line box.
1325+
<dd>Inline-level content is aligned to the end edge of the line box.
13251326
<dt><dfn title="text-align:left">''left''</dfn></dt>
1326-
<dd>The inline contents are aligned to the
1327+
<dd>Inline-level content is aligned to the
13271328
<a href="http://www.w3.org/TR/css3-writing-modes/#line-left">line left</a>
1328-
edge of the line box. (Note that in vertical writing modes, this will
1329-
be either the physical top or bottom.) [[CSS3-WRITING-MODES]]</dd>
1329+
edge of the line box.
1330+
(In vertical writing modes,
1331+
this will be either the physical top or bottom,
1332+
depending on 'text-orientation'.) [[CSS3-WRITING-MODES]]
13301333
<dt><dfn title="text-align:right">''right''</dfn></dt>
1331-
<dd>The inline contents are aligned to the
1334+
<dd>Inline-level content is aligned to the
13321335
<a href="http://www.w3.org/TR/css3-writing-modes/#line-right">line right</a>
1333-
edge of the line box. (Note that in vertical writing modes, this will
1334-
be either the physical top or bottom.) [[CSS3-WRITING-MODES]]</dd>
1336+
edge of the line box.
1337+
(In vertical writing modes,
1338+
this will be either the physical top or bottom,
1339+
depending on 'text-orientation'.) [[CSS3-WRITING-MODES]]
13351340
<dt><dfn title="text-align:center">''center''</dfn></dt>
1336-
<dd>The inline contents are centered within the line box.
1341+
<dd>Inline-level content is centered within the line box.
13371342
<dt><dfn title="text-align:justify">''justify''</dfn></dt>
1338-
<dd>The text is justified according to the method specified by the
1339-
<a href="#text-justify" class="property">'text-justify'</a> property.
1343+
<dd>Text is justified according to the method specified by the 'text-justify' property,
1344+
in order to exactly fill the line box.
13401345
<!--
13411346
<dt><dfn title="text-align:&lt;string>">''<span title="&lt;string&gt;"><a
13421347
class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-string"
@@ -1363,16 +1368,14 @@ <h3 id="text-align">
13631368

13641369
<p>A block of text is a stack of
13651370
<a href="http://www.w3.org/TR/CSS21/visuren.html#line-box">line boxes</a>.
1366-
This property specifies how the inline-level boxes within each line box align
1367-
with respect to the start and end sides of the line box: alignment is not
1368-
with respect to the
1371+
This property specifies how the inline-level boxes within each line box
1372+
align with respect to the start and end sides of the line box.
1373+
Alignment is not with respect to the
13691374
<a href="http://www.w3.org/TR/CSS21/visuren.html#viewport">viewport</a>
13701375
or containing block.
13711376

13721377
<p>In the case of ''justify'', the UA may stretch or shrink any inline boxes
1373-
by <a href="#text-justify">adjusting</a> their text in addition to
1374-
shifting their positions. (See also 'text-justify', 'letter-spacing', and
1375-
'word-spacing'.)
1378+
by <a href="#text-justify">adjusting</a> their text. (See 'text-justify'.)
13761379
If an element's white space is not <a href="#collapse">collapsible</a>,
13771380
then the UA is not required to adjust its text for the purpose of justification
13781381
and may instead treat the text as having no <i>expansion opportunities</i>.

0 commit comments

Comments
 (0)