Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / transition-shorthand-cssText.html
blob6a93da335b57e5d56281b759e20c036da0bf01c8
1 <!DOCTYPE HTML>
2 <html>
3 <style>
4 #target {
5 transition-duration: 1s;
7 </style>
8 <div id="target"></div>
9 <script src="../../resources/js-test.js"></script>
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 description("Test for Bug 310403: CssStyleDeclaration improperly sets transition shorthand when transition-duration is set.");
17 var sheet = document.styleSheets[0];
18 var rule = sheet.rules[0];
19 shouldBe("rule.cssText","'#target { transition-duration: 1s; }'");
20 rule.style.setProperty('transition-delay', '0s');
21 shouldBe("rule.cssText","'#target { transition-duration: 1s; transition-delay: 0s; }'");
22 rule.style.setProperty('transition-property', 'all');
23 shouldBe("rule.cssText","'#target { transition-duration: 1s; transition-delay: 0s; transition-property: all; }'");
24 rule.style.setProperty('transition-timing-function', 'ease');
25 shouldBe("rule.cssText","'#target { transition: all 1s ease 0s; }'");
27 </script>
29 </html>