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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.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, 7 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 border: 1px solid green; 8 border: 1px solid green;
10 } 9 }
11 10 .d2 {
12 .d2 { 11 background-color: green;
13 background-color: green; 12 width: 100%;
14 width: 100%; 13 height: 100%;
15 height: 100%; 14 }
16 }
17 </style> 15 </style>
18 </head> 16 <div class="d1"><div class="d2"></div></div>
19 17 <script>
20 <body onload="startTest()">
21 <div class="d1"><div class="d2"></div></div>
22
23
24 <script>
25 function startTest() {
26 if (window.testRunner) {
27 testRunner.waitUntilDone();
28 testRunner.setBackingScaleFactor(2, finishTest);
29 }
30 }
31
32 function finishTest() { 18 function finishTest() {
33 setTimeout(function() { testRunner.notifyDone() }, 0); 19 setTimeout(function() { testRunner.notifyDone() }, 0);
34 } 20 }
35 </script> 21 if (window.testRunner) {
36 </body> 22 testRunner.waitUntilDone();
37 23 testRunner.setBackingScaleFactor(2, finishTest);
24 }
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698