Index: LayoutTests/animations/unsigned-underflow.html |
diff --git a/LayoutTests/animations/unsigned-underflow.html b/LayoutTests/animations/unsigned-underflow.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..54a48e4719800f52962955256e3546a280bf3312 |
--- /dev/null |
+++ b/LayoutTests/animations/unsigned-underflow.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<style> |
+#target { |
+ height: 100px; |
+ width: 100px; |
+ border: solid blue 0px; |
+ -webkit-animation-duration: 1s; |
+ -webkit-animation-timing-function: cubic-bezier(0,-1,1,-1); |
+ -webkit-animation-name: anim; |
+} |
+@-webkit-keyframes "anim" { |
+ from { border-top-width: 0px; } |
+ to { border-top-width: 10px; } |
+} |
+</style> |
+<script src="resources/animation-test-helpers.js"></script> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+const expectedValues = [ |
+ // [animation-name, time, element-id, property, expected-value, tolerance] |
+ ['anim', 0.5, 'target', 'border-top-width', 0, 0], |
+]; |
+ |
+runAnimationTest(expectedValues); |
+</script> |
+<body> |
+Tests that interpolation of unsigned values does not underflow when a timing |
+function produces values outside the range 0-1. |
+<div id="target"></div> |