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

Unified Diff: LayoutTests/animations/interpolation/box-shadow-interpolation.html

Issue 38823002: Web Animations CSS: Support animation of {text,box,-webkit-box}-shadow and fix blur clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: use 0 instead of PassRefPtr<..>() Created 7 years, 2 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/box-shadow-interpolation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/interpolation/box-shadow-interpolation.html
diff --git a/LayoutTests/animations/interpolation/box-shadow-interpolation.html b/LayoutTests/animations/interpolation/box-shadow-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..4d220e9a02587a8788e997818abd9d7702425ec2
--- /dev/null
+++ b/LayoutTests/animations/interpolation/box-shadow-interpolation.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ display: inline-block;
+ width: 60px;
+ height: 60px;
+ font-size: 3px;
+ border: 2px solid;
+ margin-right: 20px;
+ margin-bottom: 30px;
+}
+.replica {
+ margin-right: 40px;
+}
+</style>
+<body>
+<script src="resources/interpolation-test.js"></script>
+<script>
+// Test basic functionality, and clipping blur at 0
+assertInterpolation({
+ property: 'box-shadow',
+ from: '15px 10px 5px 6px black',
+ to: '-15px -10px 25px -4px orange'
+}, [
+ {at: -0.3, is: '24px 16px 0px 9px black'},
+ {at: 0, is: '15px 10px 5px 6px black'},
+ {at: 0.3, is: '6px 4px 11px 3px rgb(77, 50, 0)'},
+ {at: 0.6, is: '-3px -2px 17px 0px rgb(153, 99, 0)'},
+ {at: 1, is: '-15px -10px 25px -4px orange'},
+ {at: 1.5, is: '-30px -20px 35px -9px rgb(255, 248, 0)'},
+]);
+
+// Test padding shorter lists
+assertInterpolation({
+ property: 'box-shadow',
+ from: '10px 20px rgba(255, 255, 0, 0.5), inset 5px 10em #008000',
+ to: 'none'
+}, [
+ {at: -0.3, is: '13px 26px rgba(255, 255, 0, 0.65), inset 6.5px 39px rgb(0, 166, 0)'},
+ {at: 0, is: '10px 20px rgba(255, 255, 0, 0.5), inset 5px 30px #008000'},
+ {at: 0.3, is: '7px 14px rgba(255, 255, 0, 0.35), inset 3.5px 21px rgba(0, 128, 0, 0.7)'},
+ {at: 0.6, is: '4px 8px rgba(255, 255, 0, 0.2), inset 2px 12px rgba(0, 128, 0, 0.4)'},
+ {at: 1, is: 'none'},
+ {at: 1.5, is: '-5px -10px transparent, inset -2.5px -15px transparent'},
+]);
+
+// Test unmatched inset
+assertInterpolation({
+ property: 'box-shadow',
+ from: '10px 20px yellow, 5px 10px green',
+ to: 'inset 5px 10px green, 15px 20px blue'
+}, [
+ {at: -0.3, is: '10px 20px yellow, 5px 10px green'},
+ {at: 0, is: '10px 20px yellow, 5px 10px green'},
+ {at: 0.3, is: '10px 20px yellow, 5px 10px green'},
+ {at: 0.6, is: 'inset 5px 10px green, 15px 20px blue'},
+ {at: 1, is: 'inset 5px 10px green, 15px 20px blue'},
+ {at: 1.5, is: 'inset 5px 10px green, 15px 20px blue'},
+]);
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698