-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSSTransitionDiscrete: add transition-animation-type to transition sh…
…orthand This patch implements the proposed transition shorthand for transition-animation-type: w3c/csswg-drafts#8857 (comment) Bug: 1453112 Change-Id: I2f15592de8d9b74be864bd0e0c0eec9d2de77b73
- Loading branch information
1 parent
b8294eb
commit 105759f
Showing
4 changed files
with
70 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
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,42 @@ | ||
<!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'); | ||
|
||
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'); | ||
</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