OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .box { | 5 .box { |
6 height: 30px; | 6 height: 30px; |
7 width: 200px; | 7 width: 200px; |
8 background-image: -webkit-linear-gradient(black, black); | 8 background-image: linear-gradient(black, black); |
9 border-radius: 25px; | 9 border-radius: 25px; |
10 border: 1px solid green; | 10 border: 1px solid green; |
11 } | 11 } |
12 </style> | 12 </style> |
13 </head> | 13 </head> |
14 <script> | 14 <script> |
15 window.onload = function() { | 15 window.onload = function() { |
16 if (window.testRunner) { | 16 if (window.testRunner) { |
17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
18 testRunner.setBackingScaleFactor(2, finishTest); | 18 testRunner.setBackingScaleFactor(2, finishTest); |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 function finishTest() { | 22 function finishTest() { |
23 setTimeout(function() { testRunner.notifyDone(); }, 0); | 23 setTimeout(function() { testRunner.notifyDone(); }, 0); |
24 } | 24 } |
25 </script> | 25 </script> |
26 <body> | 26 <body> |
27 <!-- You should see no red leaking through the inner edge of the border. --> | 27 <!-- You should see no red leaking through the inner edge of the border. --> |
28 <div style="background-color: red; padding: 10px; width: 200px"> | 28 <div style="background-color: red; padding: 10px; width: 200px"> |
29 <div class="box"></div> | 29 <div class="box"></div> |
30 </div> | 30 </div> |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |