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 "bolder" or "lig…
…hter" is used on a "font-weight" property https://bugs.webkit.org/show_bug.cgi?id=251493 Reviewed by Antti Koivisto. Keyframes can set the "font-weight" property to "bolder" or "lighter". When such values are used, we recompute keyframes if the inherited "font-weight" value changes while an animation is active. * LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/fontWeight-expected.txt: * Source/WebCore/animation/KeyframeEffect.cpp: (WebCore::KeyframeEffect::updateBlendingKeyframes): (WebCore::KeyframeEffect::computeCSSAnimationBlendingKeyframes): * Source/WebCore/animation/KeyframeEffect.h: (WebCore::KeyframeEffect::hasRelativeFontWeight const): * Source/WebCore/animation/KeyframeEffectStack.cpp: (WebCore::KeyframeEffectStack::applyKeyframeEffects): * Source/WebCore/style/StyleResolver.cpp: (WebCore::Style::Resolver::keyframeStylesForAnimation): * Source/WebCore/style/StyleResolver.h: Canonical link: https://commits.webkit.org/259740@main
- Loading branch information
Showing
6 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...utTests/imported/w3c/web-platform-tests/web-animations/responsive/fontWeight-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 Relative font weight bolder responsive to style changes assert_not_equals: got disallowed value "400" | ||
FAIL Relative font weight lighter responsive to style changes assert_not_equals: got disallowed value "700" | ||
PASS Relative font weight bolder responsive to style changes | ||
PASS Relative font weight lighter responsive to style 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
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