-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1842929 [wpt PR 40975] - CSSTransitionDiscrete: add transition-an…
…imation-type to transition shorthand, a=testonly Automatic update from web-platform-tests CSSTransitionDiscrete: add transition-animation-type to transition shorthand This patch implements the proposed transition shorthand for transition-animation-type: w3c/csswg-drafts#8857 (comment) Bug: 1453112 Change-Id: I2f15592de8d9b74be864bd0e0c0eec9d2de77b73 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4679218 Reviewed-by: David Baron <dbaron@chromium.org> Commit-Queue: David Baron <dbaron@chromium.org> Auto-Submit: Joey Arhar <jarhar@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1176392} -- wpt-commits: 777bad789677c93a78ac65101d618d2c9e4ac998 wpt-pr: 40975
- Loading branch information
1 parent
8b429b8
commit 735fccb
Showing
4 changed files
with
85 additions
and
4 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
57 changes: 57 additions & 0 deletions
57
testing/web-platform/tests/css/css-transitions/parsing/transition-behavior.html
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE html> | ||
<link rel=author href="mailto:jarhar@chromium.org"> | ||
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/8857"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
<script src="/css/support/computed-testcommon.js"></script> | ||
<div id="target"></div> | ||
<script> | ||
test_valid_value('transition-animation-type', 'normal'); | ||
test_computed_value('transition-animation-type', 'normal'); | ||
|
||
test_valid_value('transition-animation-type', 'discrete'); | ||
test_computed_value('transition-animation-type', 'discrete'); | ||
|
||
test_valid_value('transition', 'discrete display', 'display 0s ease 0s discrete'); | ||
test_computed_value('transition', 'discrete display', 'display 0s ease 0s discrete'); | ||
|
||
test_valid_value('transition', 'discrete display 3s', 'display 3s ease 0s discrete'); | ||
test_computed_value('transition', 'discrete display 3s', 'display 3s ease 0s discrete'); | ||
|
||
test_valid_value('transition', 'discrete display 3s 1s', 'display 3s ease 1s discrete'); | ||
test_computed_value('transition', 'discrete display 3s 1s', 'display 3s ease 1s discrete'); | ||
|
||
test_valid_value('transition', 'discrete display 3s ease-in-out', 'display 3s ease-in-out 0s discrete'); | ||
test_computed_value('transition', 'discrete display 3s ease-in-out', 'display 3s ease-in-out 0s discrete'); | ||
|
||
test_valid_value('transition', 'discrete display 3s ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_computed_value('transition', 'discrete display 3s ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
|
||
test_invalid_value('transition', 'asdf display'); | ||
test_invalid_value('transition', 'display asdf'); | ||
|
||
// Putting "discrete" anywhere in the shorthand should still work | ||
test_valid_value('transition', 'display discrete 3s ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_valid_value('transition', 'display 3s discrete ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_valid_value('transition', 'display 3s ease-in-out discrete 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_valid_value('transition', 'display 3s ease-in-out 1s discrete', 'display 3s ease-in-out 1s discrete'); | ||
test_computed_value('transition', 'display discrete 3s ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_computed_value('transition', 'display 3s discrete ease-in-out 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_computed_value('transition', 'display 3s ease-in-out discrete 1s', 'display 3s ease-in-out 1s discrete'); | ||
test_computed_value('transition', 'display 3s ease-in-out 1s discrete', 'display 3s ease-in-out 1s discrete'); | ||
|
||
// Serialization with multiple shorthands, including different order | ||
test_valid_value('transition', | ||
'discrete display, normal opacity, color', | ||
'display 0s ease 0s discrete, opacity 0s ease 0s, color 0s ease 0s'); | ||
test_computed_value('transition', | ||
'discrete display, normal opacity, color', | ||
'display 0s ease 0s discrete, opacity 0s ease 0s, color 0s ease 0s'); | ||
test_valid_value('transition', | ||
'normal opacity, color, discrete display', | ||
'opacity 0s ease 0s, color 0s ease 0s, display 0s ease 0s discrete'); | ||
test_computed_value('transition', | ||
'normal opacity, color, discrete display', | ||
'opacity 0s ease 0s, color 0s ease 0s, display 0s ease 0s discrete'); | ||
</script> |
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