-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[web-animations] don't normalize progress for
visibility
and `conte…
…nt-visibility` while animating https://bugs.webkit.org/show_bug.cgi?id=268366 Reviewed by Tim Nguyen. For CSS properties using a "discrete" animation type, we normalize the animated value to be either 0 or 1 depending on which side of the 0.5 progress value we stand. However, the `visibility` and `content-visibility` properties have a special type of discrete animation support that requires to not perform this value normalization, as will the `display` property when we add animation support for it (see bug 267762). We introduce a new wrapper type `NonNormalizedDiscretePropertyWrapper` to do just that and use it for the two properties listed above. This addresses the last remaining failure for the `content-visibility` interpolation test. * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-interpolation-expected.txt: * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::AnimationPropertyWrapperBase::normalizesProgressForDiscreteInterpolation const): (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): (WebCore::blendStandardProperty): Canonical link: https://commits.webkit.org/273742@main
- Loading branch information
Showing
2 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters