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

Unified Diff: LayoutTests/animations/interpolation/webkit-mask-box-image-outset-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-outset-interpolation.html
diff --git a/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html b/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
index 0a4f1bb7fae351178e140100157b35be2179b77c..f286e8c688b905b6d4cf4bce5c3eee66ac7c2840 100644
--- a/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
+++ b/LayoutTests/animations/interpolation/webkit-mask-box-image-outset-interpolation.html
@@ -30,5 +30,17 @@ assertInterpolation({
{at: 1, is: '50px'},
{at: 1.5, is: '75px'}
]);
+assertInterpolation({
+ property: '-webkit-mask-box-image-outset',
+ from: '0',
+ to: '50',
+}, [
+ {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-outset can't be negative.
+ {at: 0, is: '0'},
+ {at: 0.4, is: '20'},
+ {at: 0.6, is: '30'},
+ {at: 1, is: '50'},
+ {at: 1.5, is: '75'}
+]);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698