| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests assigning a calculated value to 'transition-delay' CSS property."); |
| var testDiv = document.getElementById("testDiv"); |
| shouldBeEmptyString("testDiv.style['transition-delay']"); |
| evalAndLog("testDiv.style['transition-delay'] = 'calc(300ms/2)'"); |
| shouldBeEqualToString("testDiv.style['transition-delay']", "calc(0.15s)"); |
| shouldBeEqualToString("window.getComputedStyle(testDiv).getPropertyValue('transition-delay')", "0.15s"); |
| <script src="../../resources/js-test-post.js"></script> |