Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Web Animations] Make WPT test at animation-model/keyframe-effects/ef…
…fect-value-context.html pass reliably https://bugs.webkit.org/show_bug.cgi?id=186490 rdar://41000137 Reviewed by Antti Koivisto. We added support for recomputing keyframes when the computed font-size changes in bug 237357, allowing any keyframe values depending on font-size to produce the expected values. However, we have a bug when font-size changes on a parent element where the logic under ComputedStyleExtractor::propertyValue() will not invalidate style because the code does not think the style needs updating. So we update hasValidStyleForProperty() to account for animations affecting the property for which the computed style is requested. * LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-context-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-context-filling-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/boxShadow-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/shapeOutside-expected.txt: * Source/WebCore/animation/KeyframeEffectStack.cpp: (WebCore::KeyframeEffectStack::containsProperty const): * Source/WebCore/animation/KeyframeEffectStack.h: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::hasValidStyleForProperty): Canonical link: https://commits.webkit.org/256889@main
- Loading branch information
Showing
7 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...m-tests/web-animations/animation-model/keyframe-effects/effect-value-context-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
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
LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/boxShadow-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 boxShadow responsive to style changes assert_not_equals: got disallowed value "rgb(255, 0, 0) 100px 100px 0px 0px" | ||
PASS boxShadow responsive to style 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 @@ | ||
|
||
FAIL shapeOutside responsive to style changes assert_not_equals: got disallowed value "circle(100px at 50% 50%)" | ||
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%)" | ||
|
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