Index: LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html |
diff --git a/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html b/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e7f12610c06cfb641ac58cc9ab951eef5ad14198 |
--- /dev/null |
+++ b/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<html> |
+<style> |
+* { |
+ transition-timing-function: cubic-bezier(0, 0, calc(0.5), calc(1.0)); |
+} |
+</style> |
+</head> |
+<body> |
+ <p>This tests that calc() values in cubic-bezier functions are read correctly.</p> |
+ <p id="result"></p> |
+</body> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ var body = document.getElementsByTagName("body")[0]; |
+ if (window.getComputedStyle(body)["transitionTimingFunction"] == "cubic-bezier(0, 0, 0.5, 1)") |
+ document.getElementById("result").innerText = "PASS"; |
+ else |
+ document.getElementById("result").innerText = "FAIL"; |
+</script> |
+</html> |