Skip to content

Commit 43e37c5

Browse files
committed
[css-image-animation] Add note on propagation
See #13435
1 parent 9302a9f commit 43e37c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

css-image-animation-1/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ Controlling Image Animations: the 'image-animation' property {#image-animation}
108108
When this property is applied to the [=root element=],
109109
its effects on background [=decorative images=] are propagated to the [=canvas background=].
110110

111+
Note: For legacy reasons,
112+
the 'background' property propagates not only from the [=root element=],
113+
but also from the HTML <{body}> element.
114+
However, newer properties like 'image-animation' <em>only</em> propagate from the [=root element=].
115+
Setting it on the <{body}> will not propagate,
116+
even if that is where the 'background' is set.
117+
111118
<dl dfn-for=image-animation dfn-type=value>
112119
<dt><dfn>normal</dfn>
113120
<dd>

0 commit comments

Comments
 (0)