Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-text-decor-3] Specify animation addition/accumulation behavior for text-shadow #4375

Closed
wants to merge 2 commits into from
Closed
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
18 changes: 18 additions & 0 deletions css-text-decor-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Use <i> Autolinks: yes
<pre class="link-defaults">
spec:css-break-3; type:dfn; text:fragment
spec:css-display-3; type:property; text:display
spec:infra; type:dfn; text:list
spec:web-animations-1; type:dfn; text:composite operation
</pre>

<h2 id="intro">
Expand Down Expand Up @@ -886,6 +888,22 @@ Text Shadows: the 'text-shadow' property</h2>
<code>::first-line</code> and <code>::first-letter</code>
pseudo-elements.

<h3 id="combining-text-shadows">Addition and accumulation of text-shadows</h3>

<a lt="composite operation">Composition</a> of text-shadow values when animating
follows the same model as 'box-shadow', as follows:

<a lt="value addition">Addition</a> of two text-shadow lists
<var>V<sub>a</sub></var> and <var>V<sub>b</sub></var> is defined as [=list=]
concatenation such that <var ignore>V<sub>result</sub></var> is equal to
<var>V<sub>a</sub></var> [=list/extended=] with <var>V<sub>b</sub></var>.

<a lt="value accumulation">Accumulation</a> of two text-shadow lists
<var>V<sub>a</sub></var> and <var>V<sub>b</sub></var> follows the padding rules
for interpolation as defined in the <b>Animation type</b> section of
'text-shadow'. Instead of interpolating, however, accumulation performs
addition on each component according to its type.

<h2 id="painting">
Painting Text Decorations</h2>

Expand Down