Skip to content

Propagate image-animation to viewport and enable repeat#59264

Draft
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7763845
Draft

Propagate image-animation to viewport and enable repeat#59264
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-export-cl-7763845

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

Currently, the 'image-animation' property is not correctly propagated
from the root element to the viewport, and so root backgrounds fail to
respect the animation control.

Therefore, implements viewport propagation logic in StyleResolver to
ensure that image-animation values correctly apply to the root
viewport.

Note that it intentionally prevents propagation from the <body> element
to the viewport, which aligns with the CSS Image Animation specification
[1][2].

Additionally, by adding 'image_node_animation_info' to
'GraphicsContext::DrawImageTiled' and passing it through the related
paint pipeline, the underlying graphics layer can now correctly resolve
the animation state for tiled images (e.g., 'background-repeat').

[1] https://drafts.csswg.org/css-image-animation-1/#image-animation
[2] w3c/csswg-drafts#13435 (comment)

Bug: 429459566
Change-Id: I0f834d30e7567396bdd69cf8135b1be4098af6b3
Reviewed-on: https://chromium-review.googlesource.com/7763845
WPT-Export-Revision: a6b6b6ad84482b5e2c99751855b24346d5804b8e

Currently, the 'image-animation' property is not correctly propagated
from the root element to the viewport, and so root backgrounds fail to
respect the animation control.

Therefore, implements viewport propagation logic in `StyleResolver` to
ensure that `image-animation` values correctly apply to the root
viewport.

Note that it intentionally prevents propagation from the <body> element
to the viewport, which aligns with the CSS Image Animation specification
[1][2].

Additionally, by adding 'image_node_animation_info' to
'GraphicsContext::DrawImageTiled' and passing it through the related
paint pipeline, the underlying graphics layer can now correctly resolve
the animation state for tiled images (e.g., 'background-repeat').

[1] https://drafts.csswg.org/css-image-animation-1/#image-animation
[2] w3c/csswg-drafts#13435 (comment)

Bug: 429459566
Change-Id: I0f834d30e7567396bdd69cf8135b1be4098af6b3
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants