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

Unified Diff: LayoutTests/animations/unsigned-underflow.html

Issue 23287005: CSS Animations: Clamp to avoid underflow when blending unsigned values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update TestExpectations Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/animations/unsigned-underflow-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/animations/unsigned-underflow-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698