Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2d110664327e6b1c94dd13f891029078b60bc885
      
https://github.com/WebKit/WebKit/commit/2d110664327e6b1c94dd13f891029078b60bc885
  Author: Antoine Quint <[email protected]>
  Date:   2026-01-28 (Wed, 28 Jan 2026)

  Changed paths:
    A 
LayoutTests/webanimations/threaded-animations/content-visibility-expected.txt
    A LayoutTests/webanimations/threaded-animations/content-visibility.html
    M Source/WebCore/animation/KeyframeEffect.cpp

  Log Message:
  -----------
  [threaded-animations] WPT test 
`css/css-contain/content-visibility/content-visibility-animation-in-auto-subtree.html`
 fails with "Threaded Time-based Animations" enabled
https://bugs.webkit.org/show_bug.cgi?id=306427
rdar://169096874

Reviewed by Anne van Kesteren.

The first subtest of the WPT test 
`css/css-contain/content-visibility/content-visibility-animation-in-auto-subtree.html`
 checks
that an element within a skipped subtree does not update its computed style due 
to a running animation.

This test regressed with threaded animations because we neglected to check 
whether the scenario described above occurred. We now
account for it in `KeyframeEffect::canBeAccelerated()`. Additionally, to check 
this type of case is more explicitly tested, we
add a new test.

Note that there is no test expectation change for the WPT test in this patch 
since the flag is not yet enabled on bots. This
was caught in preparation of that running animation tests locally using 
`--experimental-feature ThreadedTimeBasedAnimationsEnabled=true`.

Test: webanimations/threaded-animations/content-visibility.html

* 
LayoutTests/webanimations/threaded-animations/content-visibility-expected.txt: 
Added.
* LayoutTests/webanimations/threaded-animations/content-visibility.html: Added.
* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::canBeAccelerated const):

Canonical link: https://commits.webkit.org/306355@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to