-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-transitions]
transition
property should use shortest serializa…
…tion rule https://bugs.webkit.org/show_bug.cgi?id=266234 Reviewed by Tim Nguyen. As discussed in web-platform-tests/wpt#43574, serializing the `transition` shorthand should always strive to produce the shortest serialization and omit initial values. We update the relevant tests, including WPT, to match this expectation and add a new test for the case where `transition-delay` is not the initial value while `transition-duration` is since those two properties have the same `<time>` type and `transition-duration` serializes first. * LayoutTests/fast/css/shorthand-mismatched-list-crash-expected.txt: * LayoutTests/fast/css/shorthand-mismatched-list-crash.html: * LayoutTests/fast/css/transform-inline-style-expected.txt: * LayoutTests/fast/css/transform-inline-style-remove-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/parsing/transition-behavior.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/parsing/transition-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/parsing/transition-computed.html: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::addValueForAnimationPropertyToList): (WebCore::animationShorthandValue): (WebCore::singleTransitionValue): (WebCore::transitionShorthandValue): (WebCore::ComputedStyleExtractor::valueForPropertyInStyle const): * Source/WebCore/css/ShorthandSerializer.cpp: (WebCore::ShorthandSerializer::serializeLayered const): * Source/WebCore/platform/animation/Animation.cpp: (WebCore::Animation::animationsMatch const): * Source/WebCore/platform/animation/Animation.h: (WebCore::Animation::TransitionProperty::operator== const): Canonical link: https://commits.webkit.org/272513@main
- Loading branch information
Showing
13 changed files
with
83 additions
and
46 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
LayoutTests/fast/css/shorthand-mismatched-list-crash-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
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,6 +1,6 @@ | ||
Tests reading inline style of transition, and -webkit-transform-origin | ||
https://bugs.webkit.org/show_bug.cgi?id=22594 | ||
|
||
style: all 1s ease 0s, left 3s cubic-bezier(0.2, 0.3, 0.6, 0.8) 2s | ||
style: 1s, left 3s cubic-bezier(0.2, 0.3, 0.6, 0.8) 2s | ||
style: left 30% | ||
|
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
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