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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline Created 4 years, 8 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 <head>
3 <style> 2 <style>
4 .d1 { 3 .d1 {
5 position: absolute; 4 position: absolute;
6 left: 10.5px; 5 left: 10.5px;
7 width: 100px; 6 width: 100px;
8 height: 100px; 7 height: 100px;
9 background-color: red; 8 background-color: red;
10 border: 1px solid green; 9 border: 1px solid green;
11 } 10 }
12 11 .d2 {
13 .d2 { 12 background-color: green;
14 background-color: green; 13 width: 100%;
15 width: 100%; 14 height: 100%;
16 height: 100%; 15 }
17 }
18 </style> 16 </style>
19 </head> 17 <div class="d1"><div class="d2"></div></div>
20 18 <script>
21 <body onload="startTest()">
22 <div class="d1"><div class="d2"></div></div>
23
24
25 <script>
26 function startTest() {
27 if (window.testRunner) {
28 testRunner.waitUntilDone();
29 testRunner.setBackingScaleFactor(2, finishTest);
30 }
31 }
32
33 function finishTest() { 19 function finishTest() {
34 setTimeout(function() { testRunner.notifyDone() }, 0); 20 setTimeout(function() { testRunner.notifyDone() }, 0);
35 } 21 }
36 </script> 22 if (window.testRunner) {
37 </body> 23 testRunner.waitUntilDone();
38 24 testRunner.setBackingScaleFactor(2, finishTest);
25 }
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698