Skip to content

[web-animations] make the display property animatable - #26238

Merged
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
graouts:display-animatable-basic-interpolation
Mar 21, 2024
Merged

webkit-commit-queue merged 1 commit into
WebKit:mainfrom
graouts:display-animatable-basic-interpolation

Conversation

@graouts

@graouts graouts commented Mar 21, 2024 •

Copy link
Copy Markdown
Contributor

531dc1c

[web-animations] make the `display` property animatable
https://bugs.webkit.org/show_bug.cgi?id=271372

Reviewed by Tim Nguyen.

As part of the work to add interpolation support for the `display` property (see bug 267762) we need
to make that property animatable. We add basic support with a new wrapper in CSSPropertyAnimation.cpp,
but more work will be needed to deal with the more tricky aspects of `display: none` values encountered
before and after applying animations during style resolution.

It is expected that the WPT test `css/css-display/animations/display-interpolation.html` now has FAIL
results since this test is not aware of `display` being an animatable property. That test is superseded
by `css/css-display/animations/display-interpolation.tentative.html` but both tests currently co-exist
in the WPT suite so we retain both of them.

Likewise, we alter the WPT test `web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001.html`
to no longer assume the `display` property is not animatable.

Finally, the test `imported/blink/fast/css-generated-content/pseudo-animation-display.html` now fails.
That test also fails in Chrome [0] after they've added animation support for the `display` property, but our
failures aren't the same. I've filed an issue with the CSS WG [1] to discuss this and ensure we get WPT coverage.

[0] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/TestExpectations;l=3487;bpv=1;bpt=1
[1] w3c/csswg-drafts#10111

* LayoutTests/imported/blink/fast/css-generated-content/pseudo-animation-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-none-dont-cancel.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001.html:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):

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

d010ec7

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-skia
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 tv-sim ✅ 🧪 mac-wk2-stress ❌ 🧪 api-gtk
✅ 🛠 watch
✅ 🛠 🧪 unsafe-merge ✅ 🛠 watch-sim

@graouts graouts self-assigned this Mar 21, 2024
@graouts graouts added the Animations Bugs related to CSS + SVG animations and transitions label Mar 21, 2024
@graouts
graouts requested review from anttijk and grorg March 21, 2024 11:00
Comment on lines 18 to 29

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have these regressed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I just read your commit message. Perhaps worth deleting it from upstream, display interpolation is not really tentative anymore.

@graouts graouts added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 21, 2024
https://bugs.webkit.org/show_bug.cgi?id=271372

Reviewed by Tim Nguyen.

As part of the work to add interpolation support for the `display` property (see bug 267762) we need
to make that property animatable. We add basic support with a new wrapper in CSSPropertyAnimation.cpp,
but more work will be needed to deal with the more tricky aspects of `display: none` values encountered
before and after applying animations during style resolution.

It is expected that the WPT test `css/css-display/animations/display-interpolation.html` now has FAIL
results since this test is not aware of `display` being an animatable property. That test is superseded
by `css/css-display/animations/display-interpolation.tentative.html` but both tests currently co-exist
in the WPT suite so we retain both of them.

Likewise, we alter the WPT test `web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001.html`
to no longer assume the `display` property is not animatable.

Finally, the test `imported/blink/fast/css-generated-content/pseudo-animation-display.html` now fails.
That test also fails in Chrome [0] after they've added animation support for the `display` property, but our
failures aren't the same. I've filed an issue with the CSS WG [1] to discuss this and ensure we get WPT coverage.

[0] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/TestExpectations;l=3487;bpv=1;bpt=1
[1] w3c/csswg-drafts#10111

* LayoutTests/imported/blink/fast/css-generated-content/pseudo-animation-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-animations/display-none-dont-cancel.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-display/animations/display-interpolation.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-001.html:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::conservativelyCollectChangedAnimatableProperties const):

Canonical link: https://commits.webkit.org/276464@main
@webkit-commit-queue
webkit-commit-queue force-pushed the display-animatable-basic-interpolation branch from d010ec7 to 531dc1c Compare March 21, 2024 15:33
@webkit-commit-queue

Copy link
Copy Markdown
Collaborator

Committed 276464@main (531dc1c): https://commits.webkit.org/276464@main

Reviewed commits have been landed. Closing PR #26238 and removing active labels.

@webkit-commit-queue
webkit-commit-queue merged commit 531dc1c into WebKit:main Mar 21, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 21, 2024
@graouts
graouts deleted the display-animatable-basic-interpolation branch March 21, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Animations Bugs related to CSS + SVG animations and transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants