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

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

Issue 2973013002: Group all responsive animation tests together (Closed)
Patch Set: Rebase Created 3 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <div id='container'>
6 <div id='element'></div>
7 </div>
8
9 <script>
10 var element = document.getElementById('element');
11 var container = document.getElementById('container');
12
13 test(function() {
14 container.style.fontSize = '10px';
15 var player = element.animate([{transform: 'translateX(10em)'}, {transform: ' translateX(20em)'}], 10);
16 player.pause();
17 player.currentTime = 2;
18 container.style.fontSize = '20px';
19 assert_equals(getComputedStyle(element).transform, 'matrix(1, 0, 0, 1, 240, 0)');
20 }, 'Transform responsive to font size changes');
21
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698