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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/box-shadow-interpolation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="UTF-8">
3 <style>
4 .target {
5 display: inline-block;
6 width: 60px;
7 height: 60px;
8 font-size: 3px;
9 border: 2px solid;
10 margin-right: 20px;
11 margin-bottom: 30px;
12 }
13 .replica {
14 margin-right: 40px;
15 }
16 </style>
17 <body>
18 <script src="resources/interpolation-test.js"></script>
19 <script>
20 // Test basic functionality, and clipping blur at 0
21 assertInterpolation({
22 property: 'box-shadow',
23 from: '15px 10px 5px 6px black',
24 to: '-15px -10px 25px -4px orange'
25 }, [
26 {at: -0.3, is: '24px 16px 0px 9px black'},
27 {at: 0, is: '15px 10px 5px 6px black'},
28 {at: 0.3, is: '6px 4px 11px 3px rgb(77, 50, 0)'},
29 {at: 0.6, is: '-3px -2px 17px 0px rgb(153, 99, 0)'},
30 {at: 1, is: '-15px -10px 25px -4px orange'},
31 {at: 1.5, is: '-30px -20px 35px -9px rgb(255, 248, 0)'},
32 ]);
33
34 // Test padding shorter lists
35 assertInterpolation({
36 property: 'box-shadow',
37 from: '10px 20px rgba(255, 255, 0, 0.5), inset 5px 10em #008000',
38 to: 'none'
39 }, [
40 {at: -0.3, is: '13px 26px rgba(255, 255, 0, 0.65), inset 6.5px 39px rgb(0, 166 , 0)'},
41 {at: 0, is: '10px 20px rgba(255, 255, 0, 0.5), inset 5px 30px #008000'},
42 {at: 0.3, is: '7px 14px rgba(255, 255, 0, 0.35), inset 3.5px 21px rgba(0, 128, 0, 0.7)'},
43 {at: 0.6, is: '4px 8px rgba(255, 255, 0, 0.2), inset 2px 12px rgba(0, 128, 0, 0.4)'},
44 {at: 1, is: 'none'},
45 {at: 1.5, is: '-5px -10px transparent, inset -2.5px -15px transparent'},
46 ]);
47
48 // Test unmatched inset
49 assertInterpolation({
50 property: 'box-shadow',
51 from: '10px 20px yellow, 5px 10px green',
52 to: 'inset 5px 10px green, 15px 20px blue'
53 }, [
54 {at: -0.3, is: '10px 20px yellow, 5px 10px green'},
55 {at: 0, is: '10px 20px yellow, 5px 10px green'},
56 {at: 0.3, is: '10px 20px yellow, 5px 10px green'},
57 {at: 0.6, is: 'inset 5px 10px green, 15px 20px blue'},
58 {at: 1, is: 'inset 5px 10px green, 15px 20px blue'},
59 {at: 1.5, is: 'inset 5px 10px green, 15px 20px blue'},
60 ]);
61 </script>
62 </body>
OLDNEW
« 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