Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[web-animations] keyframes should be recomputed when a parent element…
… changes value for a non-inherited property set to "inherit" https://bugs.webkit.org/show_bug.cgi?id=248152 Reviewed by Antti Koivisto. In the case where a non-inherited property is set to "inherit" on a keyframe, we now update keyframes each time animations are updated in case the parent style changed value. While this is not optimal, this is bound to be a pretty rare scenario which we can improve on later if we deem it necessary. * LayoutTests/imported/w3c/web-platform-tests/css/css-animations/responsive/column-rule-color-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-animations/responsive/column-width-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-properties-values-api/at-property-animation-expected.txt * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/baselineShift-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/clip-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/columnCount-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/columnGap-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/offsetRotate-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/opacity-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/perspective-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/rowGap-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/shapeOutside-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/to-color-change-expected.txt: * Source/WebCore/animation/KeyframeEffect.cpp: (WebCore::KeyframeEffect::setBlendingKeyframes): (WebCore::KeyframeEffect::setAnimatedPropertiesInStyle): (WebCore::KeyframeEffect::computeHasExplicitlyInheritedKeyframeProperty): * Source/WebCore/animation/KeyframeEffect.h: (WebCore::KeyframeEffect::hasExplicitlyInheritedKeyframeProperty const): * Source/WebCore/animation/KeyframeEffectStack.cpp: (WebCore::KeyframeEffectStack::applyKeyframeEffects): Canonical link: https://commits.webkit.org/259645@main
- Loading branch information
Showing
16 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...d/w3c/web-platform-tests/css/css-animations/responsive/column-rule-color-001-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL column-rule-color responds to currentColor changes assert_equals: expected "rgb(0, 30, 30)" but got "rgb(30, 30, 0)" | ||
FAIL column-rule-color responds to inherited changes assert_equals: expected "rgb(0, 40, 40)" but got "rgb(40, 0, 40)" | ||
PASS column-rule-color responds to inherited changes | ||
|
2 changes: 1 addition & 1 deletion
2
...ported/w3c/web-platform-tests/css/css-animations/responsive/column-width-001-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
PASS column-width responds to font-size changes | ||
FAIL column-width clamps to 0px assert_equals: expected "0px" but got "20px" | ||
FAIL column-width responds to inherited changes assert_equals: expected "auto" but got "30px" | ||
PASS column-width responds to inherited changes | ||
|
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
2 changes: 1 addition & 1 deletion
2
...ests/imported/w3c/web-platform-tests/web-animations/responsive/baselineShift-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
PASS baselineShift responsive to style changes | ||
FAIL baselineShift responsive to inherited changes assert_equals: expected "super" but got "sub" | ||
FAIL baselineShift responsive to inherited changes assert_equals: expected "80px" but got "20px" | ||
|
4 changes: 2 additions & 2 deletions
4
LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/clip-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
FAIL clip responsive to inherited clip changes assert_equals: expected "rect(10px, 20px, 330px, 340px)" but got "rect(10px, 20px, 30px, 40px)" | ||
FAIL clip responsive to inherited clip changes from auto assert_equals: expected "rect(310px, 320px, 30px, auto)" but got "auto" | ||
PASS clip responsive to inherited clip changes | ||
PASS clip responsive to inherited clip changes from auto | ||
|
2 changes: 1 addition & 1 deletion
2
...tTests/imported/w3c/web-platform-tests/web-animations/responsive/columnCount-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL column-count responsive to inherited column-count changes assert_equals: expected "3" but got "auto" | ||
PASS column-count responsive to inherited column-count changes | ||
|
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/columnGap-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
PASS column-gap responsive to style changes | ||
PASS column-gap clamped to 0px on keyframes | ||
FAIL column-gap responsive to inherited changes assert_equals: expected "80px" but got "normal" | ||
PASS column-gap responsive to inherited changes | ||
|
2 changes: 1 addition & 1 deletion
2
...Tests/imported/w3c/web-platform-tests/web-animations/responsive/offsetRotate-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
FAIL offsetRotate responsive to inherited offsetRotate changes assert_equals: expected "auto 200deg" but got "auto 150deg" | ||
PASS offsetRotate responsive to inherited offsetRotate changes | ||
|
8 changes: 4 additions & 4 deletions
8
LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/opacity-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
PASS fillOpacity responsive to inherited changes | ||
FAIL floodOpacity responsive to inherited changes assert_equals: expected "0.375" but got "0.75" | ||
FAIL opacity responsive to inherited changes assert_equals: expected "0.375" but got "0.75" | ||
FAIL shapeImageThreshold responsive to inherited changes assert_equals: expected "0.375" but got "0.75" | ||
FAIL stopOpacity responsive to inherited changes assert_equals: expected "0.375" but got "0.75" | ||
PASS floodOpacity responsive to inherited changes | ||
PASS opacity responsive to inherited changes | ||
PASS shapeImageThreshold responsive to inherited changes | ||
PASS stopOpacity responsive to inherited changes | ||
PASS strokeOpacity responsive to inherited changes | ||
|
2 changes: 1 addition & 1 deletion
2
...tTests/imported/w3c/web-platform-tests/web-animations/responsive/perspective-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
PASS perspective responsive to style changes | ||
PASS perspective clamped to 0px on keyframes | ||
FAIL perspective responsive to inherited changes assert_equals: expected "80px" but got "none" | ||
PASS perspective responsive to inherited changes | ||
|
2 changes: 1 addition & 1 deletion
2
LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/rowGap-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
PASS row-gap responsive to style changes | ||
PASS row-gap clamped to 0px on keyframes | ||
FAIL row-gap responsive to inherited changes assert_equals: expected "80px" but got "normal" | ||
PASS row-gap responsive to inherited changes | ||
|
2 changes: 1 addition & 1 deletion
2
...Tests/imported/w3c/web-platform-tests/web-animations/responsive/shapeOutside-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
PASS shapeOutside responsive to style changes | ||
FAIL shapeOutside responsive to inherited shapeOutside changes assert_equals: expected "circle(200px at 50% 50%)" but got "circle(150px at 50% 50%)" | ||
PASS shapeOutside responsive to inherited shapeOutside changes | ||
|
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
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