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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/animations-responsive-minHeight.html

Issue 2093423002: Move web-animations-api tests not being upstreamed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo move of reject-hyphen.html Created 4 years, 5 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 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 4
5 <div id='container'> 5 <div id='container'>
6 <div id='element'></div> 6 <div id='element'></div>
7 </div> 7 </div>
8 8
9 <script> 9 <script>
10 var element = document.getElementById('element'); 10 var element = document.getElementById('element');
(...skipping 11 matching lines...) Expand all
22 test(function() { 22 test(function() {
23 element.style.fontSize = '10px'; 23 element.style.fontSize = '10px';
24 var player = element.animate([{minHeight: '30px'}, {minHeight: 'calc(30px - 2em)'}], 10); 24 var player = element.animate([{minHeight: '30px'}, {minHeight: 'calc(30px - 2em)'}], 10);
25 player.pause(); 25 player.pause();
26 player.currentTime = 7.5; 26 player.currentTime = 7.5;
27 element.style.fontSize = '40px'; 27 element.style.fontSize = '40px';
28 assert_equals(getComputedStyle(element).minHeight, '0px'); 28 assert_equals(getComputedStyle(element).minHeight, '0px');
29 }, 'minHeight clamped to 0px'); 29 }, 'minHeight clamped to 0px');
30 30
31 </script> 31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698