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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/transition-shorthand-cssText-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <style>
4 #target {
5 transition-duration: 1s;
6 }
7 </style>
8 <div id="target"></div>
9 <script src="../../resources/js-test.js"></script>
10
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
14
15 description("Test for Bug 310403: CssStyleDeclaration improperly sets transition shorthand when transition-duration is set.");
16
17 var sheet = document.styleSheets[0];
18 var rule = sheet.rules[0];
19 shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition- duration: 1s; }'");
20 rule.style.setProperty('transition-delay', '0s');
21 shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition- duration: 1s; transition-delay: 0s; -webkit-transition-delay: 0s; }'");
22 rule.style.setProperty('transition-property', 'all');
23 shouldBe("rule.cssText","'#target { transition-duration: 1s; -webkit-transition- duration: 1s; transition-delay: 0s; -webkit-transition-delay: 0s; transition-pro perty: all; -webkit-transition-property: all; }'");
24 rule.style.setProperty('transition-timing-function', 'ease');
25 shouldBe("rule.cssText","'#target { transition: all 1s ease 0s; -webkit-transiti on: all 1s ease 0s; }'");
26
27 </script>
28
29 </html>
OLDNEW
« 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