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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/border-width-interpolation.html

Issue 1574933002: Changed type of border-width longhands from unsigned to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added trivial tests safe to rebaseline to TestExpectations Created 4 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 border-width: 30px; 5 border-width: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 50px; 8 width: 50px;
9 height: 50px; 9 height: 50px;
10 background-color: black; 10 background-color: black;
(...skipping 22 matching lines...) Expand all
33 {at: 1.5, is: '25px'}, 33 {at: 1.5, is: '25px'},
34 ]); 34 ]);
35 35
36 assertInterpolation({ 36 assertInterpolation({
37 property: 'border-width', 37 property: 'border-width',
38 from: 'initial', 38 from: 'initial',
39 to: '20px', 39 to: '20px',
40 }, [ 40 }, [
41 {at: -0.3, is: '0px'}, 41 {at: -0.3, is: '0px'},
42 {at: 0, is: '3px'}, 42 {at: 0, is: '3px'},
43 {at: 0.3, is: '8px'}, 43 {at: 0.3, is: '8.1px'},
44 {at: 0.6, is: '13px'}, 44 {at: 0.6, is: '13.2px'},
45 {at: 1, is: '20px'}, 45 {at: 1, is: '20px'},
46 {at: 1.5, is: '28px'}, 46 {at: 1.5, is: '28.5px'},
47 ]); 47 ]);
48 48
49 assertInterpolation({ 49 assertInterpolation({
50 property: 'border-width', 50 property: 'border-width',
51 from: 'inherit', 51 from: 'inherit',
52 to: '20px', 52 to: '20px',
53 }, [ 53 }, [
54 {at: -0.3, is: '0px'}, 54 {at: -0.3, is: '0px'},
55 {at: 0, is: '0px'}, 55 {at: 0, is: '0px'},
56 {at: 0.3, is: '6px'}, 56 {at: 0.3, is: '6px'},
57 {at: 0.6, is: '12px'}, 57 {at: 0.6, is: '12px'},
58 {at: 1, is: '20px'}, 58 {at: 1, is: '20px'},
59 {at: 1.5, is: '30px'}, 59 {at: 1.5, is: '30px'},
60 ]); 60 ]);
61 61
62 assertInterpolation({ 62 assertInterpolation({
63 property: 'border-width', 63 property: 'border-width',
64 from: 'unset', 64 from: 'unset',
65 to: '20px', 65 to: '20px',
66 }, [ 66 }, [
67 {at: -0.3, is: '0px'}, 67 {at: -0.3, is: '0px'},
68 {at: 0, is: '3px'}, 68 {at: 0, is: '3px'},
69 {at: 0.3, is: '8px'}, 69 {at: 0.3, is: '8.1px'},
70 {at: 0.6, is: '13px'}, 70 {at: 0.6, is: '13.2px'},
71 {at: 1, is: '20px'}, 71 {at: 1, is: '20px'},
72 {at: 1.5, is: '28px'}, 72 {at: 1.5, is: '28.5px'},
73 ]); 73 ]);
74 74
75 assertInterpolation({ 75 assertInterpolation({
76 property: 'border-width', 76 property: 'border-width',
77 from: '0px', 77 from: '0px',
78 to: '10px' 78 to: '10px'
79 }, [ 79 }, [
80 {at: -0.3, is: '0px'}, // CSS border-width can't be negative. 80 {at: -0.3, is: '0px'}, // CSS border-width can't be negative.
81 {at: 0, is: '0px'}, 81 {at: 0, is: '0px'},
82 {at: 0.3, is: '3px'}, 82 {at: 0.3, is: '3px'},
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 {at: -2, is: '35px'}, 135 {at: -2, is: '35px'},
136 {at: -0.3, is: '18px'}, 136 {at: -0.3, is: '18px'},
137 {at: 0, is: '15px'}, 137 {at: 0, is: '15px'},
138 {at: 0.3, is: '12px'}, 138 {at: 0.3, is: '12px'},
139 {at: 0.6, is: '9px'}, 139 {at: 0.6, is: '9px'},
140 {at: 1, is: '5px'}, 140 {at: 1, is: '5px'},
141 {at: 1.5, is: '0px'} 141 {at: 1.5, is: '0px'}
142 ]); 142 ]);
143 </script> 143 </script>
144 </body> 144 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698