Skip to content

Commit 723a74e

Browse files
committed
[css-text-3] Clean up hyphenation section. #3434
1 parent 4789b41 commit 723a74e

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

css-text-3/Overview.bs

+21-17
Original file line numberDiff line numberDiff line change
@@ -2421,36 +2421,40 @@ Line Breaking Details</h3>
24212421
Hyphenation: the 'hyphens' property</h3>
24222422

24232423
<p><dfn id=hyphenate lt="hyphenation|hyphenate">Hyphenation</dfn>
2424-
allows the controlled splitting of words
2424+
is the controlled splitting of words
2425+
where they usually would not be allowed to break
24252426
to improve the layout of paragraphs,
2426-
typically splitting words at syllabic or morphemic boundaries
2427+
typically splitting words at syllabic or morphemic boundaries,
24272428
and visually indicating the split (usually by inserting a hyphen, U+2010).
24282429
In some cases, hyphenation may also alter the spelling of a word.
24292430
Regardless, hyphenation is a rendering effect only:
24302431
it must have no effect on the underlying document content
24312432
or on text selection or searching.
24322433

2433-
<p>Hyphenation occurs when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
2434-
which creates a <a>soft wrap opportunity</a> within the word
2435-
where a visual indication of the split is made when actually wrapping,
2436-
as discussed above.
2437-
In CSS it is controlled with the 'hyphens' property.
2438-
CSS Text Level 3 does not define the exact rules for hyphenation,
2439-
however UAs are strongly encouraged to optimize their line-breaking implementation
2440-
to choose good break points and appropriate hyphenation points.
2441-
Hyphenation opportunities <em>are</em> considered when calculating
2442-
<a lt="min-content size">min-content intrinsic sizes</a>.
2443-
<!-- This is because it allows tables to hyphenate instead of overflowing,
2444-
which is particularly important in long-word languages like German.
2445-
https://bugzilla.mozilla.org/show_bug.cgi?id=418975 -->
2434+
<p>Hyphenation occurs when the line breaks at a valid
2435+
<dfn>hyphenation opportunity</dfn>,
2436+
which is a type of <a>soft wrap opportunity</a>
2437+
that exists within a word where <a>hyphenation</a> is allowed.
2438+
In CSS <a>hyphenation opportunities</a> are controlled
2439+
with the 'hyphens' property.
2440+
CSS Text Level 3 does not define the exact rules for <a>hyphenation</a>;
2441+
however UAs are strongly encouraged
2442+
to optimize their choice of break points
2443+
and to chose language-appropriate hyphenation points.
24462444

24472445
Note: The [=soft wrap opportunity=] introduced by
24482446
the U+002D HYPHEN-MINUS character
24492447
or the U+2010 HYPHEN character
24502448
is not a [=hyphenation opportunity=],
2451-
as no visual indication of the split is created <em>when wrapping</em>:
2449+
as no visual indication of the split is <em>created</em> when wrapping:
24522450
these characters are visible whether the line is wrapped at that point or not.
24532451

2452+
Hyphenation opportunities <em>are</em> considered when calculating
2453+
<a lt="min-content size">min-content intrinsic sizes</a>.
2454+
<!-- This is because it allows tables to hyphenate instead of overflowing,
2455+
which is particularly important in long-word languages like German.
2456+
https://bugzilla.mozilla.org/show_bug.cgi?id=418975 -->
2457+
24542458
<pre class="propdef">
24552459
Name: hyphens
24562460
Value: none | manual | auto
@@ -2463,7 +2467,7 @@ Line Breaking Details</h3>
24632467
24642468
</pre>
24652469

2466-
<p>This property controls whether hyphenation is allowed to create more
2470+
<p>This property controls whether <a>hyphenation</a> is allowed to create more
24672471
<a>soft wrap opportunities</a> within a line of text.
24682472
Values have the following meanings:
24692473

0 commit comments

Comments
 (0)