Skip to content

Commit 643729e

Browse files
committed
[css-text] Styling of soft hyphens
Closes #3863
1 parent 5f9872d commit 643729e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

css-text-3/Overview.bs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,6 +2739,22 @@ Line Breaking Details</h3>
27392739
or the HTTP <code>Content-Language</code> header)
27402740
in order to obtain correct automatic hyphenation.
27412741

2742+
The character or characters visually shown due to hyphenation
2743+
at a [=hyphenation opportunity=] created by a conditional hyphen character (&amp;shy; or U+00AD)
2744+
are inserted in-place,
2745+
and styled according to any property that applies to the conditional hyphen character.
2746+
2747+
<div class=example>
2748+
<pre><code highlight=html>ex&lt;span style="color:red">&amp;shy;&lt;/span>ample</code></pre>
2749+
2750+
<p>When the markup above is hyphenated, it is rendered as
2751+
<span style="display: inline-block; background: white; border: solid 1px; vertical-align: middle; padding: 0 1ch;">
2752+
ex<span style="color:red;">-</span><br>
2753+
ample
2754+
</span>
2755+
</div>
2756+
2757+
27422758
<p>When shaping scripts such as Arabic are allowed to break within words
27432759
due to hyphenation,
27442760
the characters must still be shaped

0 commit comments

Comments
 (0)