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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/responsive/viewport-unit-animation-responsive-expected.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #target { 3 #target {
4 position: absolute; 4 position: absolute;
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 background: blue; 7 background: blue;
8 transform: translate(calc(50vw - 50px), calc(50vh - 50px)); 8 transform: translate(calc(50vw - 50px), calc(50vh - 50px));
9 } 9 }
10 </style> 10 </style>
11 This box should be located in the center of the page. 11 This box should be located in the center of the page.
12 <div id="target"></div> 12 <div id="target"></div>
13 <script> 13 <script>
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.useUnfortunateSynchronousResizeMode(); 15 testRunner.useUnfortunateSynchronousResizeMode();
16 } 16 }
17 window.resizeTo(window.innerWidth / 2, window.innerHeight / 2); 17 window.resizeTo(window.innerWidth / 2, window.innerHeight / 2);
18 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698