@@ -2421,36 +2421,40 @@ Line Breaking Details</h3>
2421
2421
Hyphenation: the 'hyphens' property</h3>
2422
2422
2423
2423
<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
2425
2426
to improve the layout of paragraphs,
2426
- typically splitting words at syllabic or morphemic boundaries
2427
+ typically splitting words at syllabic or morphemic boundaries,
2427
2428
and visually indicating the split (usually by inserting a hyphen, U+2010).
2428
2429
In some cases, hyphenation may also alter the spelling of a word.
2429
2430
Regardless, hyphenation is a rendering effect only:
2430
2431
it must have no effect on the underlying document content
2431
2432
or on text selection or searching.
2432
2433
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.
2446
2444
2447
2445
Note: The [=soft wrap opportunity=] introduced by
2448
2446
the U+002D HYPHEN-MINUS character
2449
2447
or the U+2010 HYPHEN character
2450
2448
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 :
2452
2450
these characters are visible whether the line is wrapped at that point or not.
2453
2451
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
+
2454
2458
<pre class="propdef">
2455
2459
Name : hyphens
2456
2460
Value : none | manual | auto
@@ -2463,7 +2467,7 @@ Line Breaking Details</h3>
2463
2467
2464
2468
</pre>
2465
2469
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
2467
2471
<a>soft wrap opportunities</a> within a line of text.
2468
2472
Values have the following meanings:
2469
2473
0 commit comments