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

Unified Diff: LayoutTests/animations/interpolation/border-image-slice-interpolation.html

Issue 995253002: Web Animations: Split image slice interpolation out of LengthBoxStyleInterpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: crbug.com/466536 Created 5 years, 9 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/interpolation/border-image-slice-interpolation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/interpolation/border-image-slice-interpolation.html
diff --git a/LayoutTests/animations/interpolation/border-image-slice-interpolation.html b/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
index c609b3ed982a04de6c01ffe215eeef411c304b13..f969e681b60ef7e20add7ab3ef145dacdff82b91 100644
--- a/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
+++ b/LayoutTests/animations/interpolation/border-image-slice-interpolation.html
@@ -24,18 +24,54 @@ assertInterpolation({
}, [
{at: -0.3, is: '0%'}, // CSS border-image-slice can't be negative.
{at: 0, is: '0%'},
- {at: 0.1, is: '5%'},
- {at: 0.2, is: '10%'},
{at: 0.3, is: '15%'},
- {at: 0.4, is: '20%'},
{at: 0.5, is: '25%'},
{at: 0.6, is: '30%'},
- {at: 0.7, is: '35%'},
- {at: 0.8, is: '40%'},
- {at: 0.9, is: '45%'},
{at: 1, is: '50%'},
{at: 1.5, is: '75%'},
- {at: 10, is: '500%'}
]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: '0% fill',
+ to: '50%',
+}, [
+ {at: -0.3, is: '0% fill'},
+ {at: 0, is: '0% fill'},
+ {at: 0.3, is: '0% fill'},
+ {at: 0.5, is: '50%'},
+ {at: 0.6, is: '50%'},
+ {at: 1, is: '50%'},
+ {at: 1.5, is: '50%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: '0% 10% 20% 30%',
+ to: '40% 50% 60% 70%',
+}, [
+ {at: -0.3, is: '0% 0% 8% 17%'},
+ {at: 0, is: '0% 10% 20% 30%'},
+ {at: 0.3, is: '12% 22% 32% 42%'},
+ {at: 0.5, is: '20% 30% 40% 50%'},
+ {at: 0.6, is: '24% 34% 44% 54%'},
+ {at: 1, is: '40% 50% 60% 70%'},
+ {at: 1.5, is: '60% 70% 80% 90%'},
+]);
+
+assertInterpolation({
+ property: 'border-image-slice',
+ from: '0 10 20 30 fill',
+ to: '40 50 60 70 fill',
+}, [
+ {at: -0.3, is: '0 0 8 17 fill'}, // CSS border-image-slice can't be negative.
+ {at: 0, is: '0 10 20 30 fill'},
+ {at: 0.3, is: '12 22 32 42 fill'},
+ {at: 0.5, is: '20 30 40 50 fill'},
+ {at: 0.6, is: '24 34 44 54 fill'},
+ {at: 1, is: '40 50 60 70 fill'},
+ {at: 1.5, is: '60 70 80 90 fill'},
+]);
+
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/border-image-slice-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698