OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 | |
5 <meta name="viewport" content="width=800"> | |
6 <style> | |
7 html { font-size: 16px; } | |
8 body { width: 800px; margin: 0; overflow-y: hidden; } | |
9 </style> | |
10 | |
11 <script src="resources/autosizingTest.js"></script> | |
12 <script> | |
13 if (window.testRunner) | |
14 testRunner.waitUntilDone(); | |
15 | |
16 onload = function() { | |
skobes
2014/04/30 18:28:08
I think if you put the <script> at the end below t
pdr.
2014/04/30 18:49:01
Done.
| |
17 if (window.testRunner) { | |
18 testRunner.setPrinting(); | |
19 window.requestAnimationFrame(function() { | |
skobes
2014/04/30 18:28:08
(nit) remove unnecessary "window."
pdr.
2014/04/30 18:49:01
Done.
| |
20 if (window.testRunner) | |
21 testRunner.notifyDone(); | |
22 }); | |
23 } | |
24 } | |
25 </script> | |
26 </head> | |
27 <body> | |
28 | |
29 <div> | |
30 This text should not be autosized because the document is printing.<br> | |
31 There is enough text that we should <b>autosize</b> the text initially, but wh ile printing we should not be autosized.<br> | |
32 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempo r incididunt ut labore et dolore magna aliqua sed do eiusmod tempor incididunt u t labore et dolore magna aliqua. | |
33 </div> | |
34 | |
35 </body> | |
36 </html> | |
OLD | NEW |