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

Side by Side Diff: LayoutTests/animations/interpolation/font-size-interpolation-unset.html

Issue 840463002: Fix assert when interpolating using unset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unset handling code in StyleResolver::applyProperties Created 5 years, 11 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 <style> 3 <style>
3 .container { 4 .container {
4 zoom: 2; 5 font-size: 10px;
5 } 6 }
6 .target { 7 .target {
7 display: inline-block; 8 display: inline-block;
9 font: 100px sans-serif;
10 font-size: 20px;
8 } 11 }
9 .replica { 12 .replica {
10 color: green; 13 color: green;
11 margin-right: 30px; 14 margin-right: 30px;
12 } 15 }
13 </style> 16 </style>
17 <body>
14 <template id="target-template"> 18 <template id="target-template">
15 <span class="container"> 19 <span class="container">
16 <div class="target">TT</div> 20 <div class="target">TT</div>
17 </span> 21 </span>
18 </template> 22 </template>
19 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
20 <script> 24 <script>
21 assertInterpolation({ 25 assertInterpolation({
22 property: 'font-size', 26 property: 'font-size',
23 from: '10px', 27 from: 'unset',
24 to: '20px' 28 to: '20px'
25 }, [ 29 }, [
26 {at: -2, is: '0px'}, // CSS font-size can't be negative. 30 {at: -2, is: '0px'}, // CSS font-size can't be negative.
27 {at: -0.3, is: '7px'}, 31 {at: -0.3, is: '7px'},
28 {at: 0, is: '10px'}, 32 {at: 0, is: '10px'},
29 {at: 0.3, is: '13px'}, 33 {at: 0.3, is: '13px'},
30 {at: 0.6, is: '16px'}, 34 {at: 0.6, is: '16px'},
31 {at: 1, is: '20px'}, 35 {at: 1, is: '20px'},
32 {at: 1.5, is: '25px'}, 36 {at: 1.5, is: '25px'},
33 ]); 37 ]);
34 </script> 38 </script>
39 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698