Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1660)

Unified Diff: third_party/WebKit/LayoutTests/transitions/transition-property-layer-collision.html

Issue 2726923005: Clear started transitions overwritten by duration 0 transitions on the same property (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/transitions/transition-property-layer-collision.html
diff --git a/third_party/WebKit/LayoutTests/transitions/transition-property-layer-collision.html b/third_party/WebKit/LayoutTests/transitions/transition-property-layer-collision.html
new file mode 100644
index 0000000000000000000000000000000000000000..85d918f6ab58fce87cdec3e114724e40475f31a2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/transitions/transition-property-layer-collision.html
@@ -0,0 +1,40 @@
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<body></body>
+<script>
+function createTarget() {
+ var target = document.createElement('div');
+ document.body.appendChild(target);
+ return target;
+}
+
+test(() => {
+ var target = createTarget();
+ target.style.left = '100px';
+ assert_equals(getComputedStyle(target).left, '100px');
+ target.style.transition = 'left 1s -0.5s, left 1s -0.25s linear';
+ target.style.left = '200px';
+ assert_equals(getComputedStyle(target).left, '125px');
+ target.remove();
+}, 'The last timing properties for a transition property should be used');
+
+test(() => {
+ var target = createTarget();
+ target.style.left = '100px';
+ assert_equals(getComputedStyle(target).left, '100px');
+ target.style.transition = 'left 1s -0.5s, all 1s -0.25s linear';
+ target.style.left = '200px';
+ assert_equals(getComputedStyle(target).left, '125px');
+ target.remove();
+}, 'The last timing properties for a transition property should be used including shorthand references to the property');
+
+test(() => {
+ var target = createTarget();
+ target.style.left = '100px';
+ assert_equals(getComputedStyle(target).left, '100px');
+ target.style.transition = 'left 1s -0.5s, left 0s';
+ target.style.left = '200px';
+ assert_equals(getComputedStyle(target).left, '200px');
+ target.remove();
+}, 'The last timing properties for a transition property should be used even if they cause the transition to not start');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698