Skip to content

Commit 870f3b6

Browse files
committed
[css-text-3] Simplify clarification about soft hyphens; this very minor point does not need or deserve so much spec text. #3863
1 parent 0ebc1bb commit 870f3b6

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

css-text-3/Overview.bs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,26 +3761,15 @@ Line Breaking Details</h3>
37613761
or XML <code>xml:lang</code> attribute)
37623762
in order to obtain correct automatic hyphenation.
37633763

3764-
The character or characters visually shown due to hyphenation
3765-
at a [=hyphenation opportunity=] created by a conditional hyphen character (&amp;shy; or U+00AD)
3766-
are inserted in-place,
3767-
and styled according to any property that applies to the conditional hyphen character.
3764+
Any glyph(s) shown due to hyphenation
3765+
at a [=hyphenation opportunity=] created by a conditional hyphen character (such as U+00AD SOFT HYPHEN)
3766+
are represented by that character
3767+
and are styled accordingly.
37683768

37693769
<wpt>
37703770
hyphens/shy-styling-001.html
37713771
</wpt>
37723772

3773-
<div class=example>
3774-
<pre><code highlight=html>ex&lt;span style="color:red">&amp;shy;&lt;/span>ample</code></pre>
3775-
3776-
<p>When the markup above is hyphenated, it is rendered as
3777-
<span style="display: inline-block; background: white; border: solid 1px; vertical-align: middle; padding: 0 1ch;">
3778-
ex<span style="color:red;">-</span><br>
3779-
ample
3780-
</span>
3781-
</div>
3782-
3783-
37843773
<p>When shaping scripts such as Arabic are allowed to break within words
37853774
due to hyphenation,
37863775
the characters must still be shaped

0 commit comments

Comments
 (0)