[webkit-changes] [WebKit/WebKit] 529231: [css-animations] composite operation of implicit k...

Antoine Quint noreply at github.com
Wed Feb 1 22:32:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 52923169468b34a0026f43a1c3ac9bcae4a1200a
      https://github.com/WebKit/WebKit/commit/52923169468b34a0026f43a1c3ac9bcae4a1200a
  Author: Antoine Quint <graouts at webkit.org>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html
    M Source/WebCore/rendering/style/KeyframeList.cpp

  Log Message:
  -----------
  [css-animations] composite operation of implicit keyframes for CSS Animations should be "replace"
https://bugs.webkit.org/show_bug.cgi?id=251499

Reviewed by Antti Koivisto.

The CSS Animations spec indicates in its "Keyframes" section [0] that the default composite is
"replace". As such, when generating an implicit keyframe for an effect tied to a CSS Animation,
we should set the composite value to "replace".

This issue was caught by a new version of css/css-animations/KeyframeEffect-getKeyframes.tentative.html
which was not yet in our repository, so we update it with the most recent changes.

We make an additional change in the final subtest of this WPT to correctly have "replace" as
the composite value for the implicit keyframes. I suspect this change was not made when Google
last changed that test [1] because Chrome fails to generate the right implicit keyframes in this case.

[0] https://drafts.csswg.org/css-animations-2/#keyframes
[1] https://github.com/web-platform-tests/wpt/commit/1a5c61d2ca9d0f2c2801adf2b433c7931512152f

* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/KeyframeEffect-getKeyframes.tentative.html:
* Source/WebCore/rendering/style/KeyframeList.cpp:
(WebCore::KeyframeList::fillImplicitKeyframes):

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




More information about the webkit-changes mailing list