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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .target { 4 .target {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 background-color: black; 7 background-color: black;
8 display: inline-block; 8 display: inline-block;
9 -webkit-mask-box-image-width: 5px; 9 -webkit-mask-box-image-width: 5px;
10 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0 , 0, 0, 1)); 10 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0 , 0, 0, 1));
(...skipping 13 matching lines...) Expand all
24 }, [ 24 }, [
25 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-width can't be negative. 25 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-width can't be negative.
26 {at: 0, is: '0px'}, 26 {at: 0, is: '0px'},
27 {at: 0.3, is: '6px'}, 27 {at: 0.3, is: '6px'},
28 {at: 0.6, is: '12px'}, 28 {at: 0.6, is: '12px'},
29 {at: 1, is: '20px'}, 29 {at: 1, is: '20px'},
30 {at: 1.5, is: '30px'}, 30 {at: 1.5, is: '30px'},
31 {at: 5, is: '100px'}, 31 {at: 5, is: '100px'},
32 {at: 10, is: '200px'} 32 {at: 10, is: '200px'}
33 ]); 33 ]);
34 assertInterpolation({
35 property: '-webkit-mask-box-image-width',
36 from: '0',
37 to: '20'
38 }, [
39 {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-width can't be negative.
40 {at: 0, is: '0'},
41 {at: 0.3, is: '6'},
42 {at: 0.6, is: '12'},
43 {at: 1, is: '20'},
44 {at: 1.5, is: '30'},
45 {at: 5, is: '100'},
46 {at: 10, is: '200'}
47 ]);
34 </script> 48 </script>
35 </body> 49 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698