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

Side by Side 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 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 border: 25px; 9 border: 25px;
10 margin-right: 50px; 10 margin-right: 50px;
(...skipping 12 matching lines...) Expand all
23 from: '0px', 23 from: '0px',
24 to: '50px', 24 to: '50px',
25 }, [ 25 }, [
26 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-outset can't be negative. 26 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-outset can't be negative.
27 {at: 0, is: '0px'}, 27 {at: 0, is: '0px'},
28 {at: 0.4, is: '20px'}, 28 {at: 0.4, is: '20px'},
29 {at: 0.6, is: '30px'}, 29 {at: 0.6, is: '30px'},
30 {at: 1, is: '50px'}, 30 {at: 1, is: '50px'},
31 {at: 1.5, is: '75px'} 31 {at: 1.5, is: '75px'}
32 ]); 32 ]);
33 assertInterpolation({
34 property: '-webkit-mask-box-image-outset',
35 from: '0',
36 to: '50',
37 }, [
38 {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-outset can't be negative.
39 {at: 0, is: '0'},
40 {at: 0.4, is: '20'},
41 {at: 0.6, is: '30'},
42 {at: 1, is: '50'},
43 {at: 1.5, is: '75'}
44 ]);
33 </script> 45 </script>
34 </body> 46 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698