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

Unified Diff: LayoutTests/fast/css/transition-shorthand-cssText.html

Issue 617493002: Only default to transition shorthand if all 4 values are set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Also add check for animation Created 6 years, 3 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 | LayoutTests/fast/css/transition-shorthand-cssText-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/transition-shorthand-cssText.html
diff --git a/LayoutTests/fast/css/transition-shorthand-cssText.html b/LayoutTests/fast/css/transition-shorthand-cssText.html
new file mode 100644
index 0000000000000000000000000000000000000000..2d392f2f029114ae517ed17547dba04f5e90f463
--- /dev/null
+++ b/LayoutTests/fast/css/transition-shorthand-cssText.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML>
+<html>
+<style>
+#target {
+ transition-duration: 1s;
+}
+</style>
+<div id="target"></div>
+<script src="../../resources/js-test.js"></script>
+
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+description("Test for Bug 310403: CssStyleDeclaration improperly sets transition shorthand when transition-duration is set.");
+
+var sheet = document.styleSheets[0];
+var rule = sheet.rules[0];
+shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition-duration: 1s; }'");
+rule.style.setProperty('transition-delay', '0s');
+shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition-duration: 1s; transition-delay: 0s; -webkit-transition-delay: 0s; }'");
+rule.style.setProperty('transition-property', 'all');
+shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition-duration: 1s; transition-delay: 0s; -webkit-transition-delay: 0s; transition-property: all; -webkit-transition-property: all; }'");
+rule.style.setProperty('transition-timing-function', 'ease');
+shouldBe("rule.cssText","'#target { transition: all 1s ease 0s; -webkit-transition: all 1s ease 0s; }'");
+
+</script>
+
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/transition-shorthand-cssText-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698