Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions css-text-decor-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:css-text-3; type:dfn; text:character
spec:fill-stroke-3; type:property;
text: fill
text: stroke
spec:css-backgrounds-3; type:property; text:box-shadow
</pre>

<h2 id="intro">
Expand Down Expand Up @@ -1998,6 +1999,9 @@ Text Shadows: the 'text-shadow' property</h2>
creates rounded, rather than sharp, corners.
Negative spread values are invalid.

The extent of [=ink overflow=] from 'text-shadow' is determined
in the same manner as for 'box-shadow'.</li>

ISSUE(7250): Leave corner shaping undefined?

<dfn>Outer text shadows</dfn>
Expand Down Expand Up @@ -2068,6 +2072,22 @@ Overflow of Text Decorations</h3>
they do not extend the <a>scrollable overflow region</a>.
[[css-overflow-3]]

<div class="example">
<p>The example below demonstrates ink overflow from text decorations.</p>

<p class="figure" style="margin:1ch 0 2ch 0;font-size:10rem;text-decoration-line:underline overline;text-decoration-color:#ff0000;text-decoration-thickness:1ch;text-underline-position:under;text-underline-offset:1ch;text-emphasis-style:double-circle;text-emphasis-color:blue;text-shadow:0px 0px 1ch red"><span style="text-emphasis-position:over;background:#aaa">h</span><span style="text-emphasis-position:under;background:#ccc">g</span></p>
</div>

<div class="note">
<p>The extent of [=ink overflow=] from text decorations is UA-defined and may
vary between implementations.
Where supported, use of the <i>from-font</i> keyword may improve
the consistency of ink overflow extents between implementations,
provided that a consistent font definition is used across platforms.
For more details, refer to [[CSS-TEXT-3#text-ink-overflow]].
</p>
</div>

<h2 class="no-num" id="acknowledgements">
Appendix A: Acknowledgements</h2>

Expand Down