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

Unified Diff: LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html

Issue 54123007: Web Animations CSS: Fix clamping to non-negative values for BorderImageLength (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix bug with clampTo() Created 7 years, 1 month 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
Index: LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html
index ba15199976aa9988da3f8176c715563bbbf6e615..04ea9573d7103961e589e121502bac4be65357f4 100644
--- a/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-mask-box-image-width-interpolation.html
@@ -31,5 +31,19 @@ assertInterpolation({
{at: 5, is: '100px'},
{at: 10, is: '200px'}
]);
+assertInterpolation({
+ property: '-webkit-mask-box-image-width',
+ from: '0',
+ to: '20'
+}, [
+ {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-width can't be negative.
+ {at: 0, is: '0'},
+ {at: 0.3, is: '6'},
+ {at: 0.6, is: '12'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '30'},
+ {at: 5, is: '100'},
+ {at: 10, is: '200'}
+]);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698