| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html style="font-size: 16px"> |
| 3 <head> |
| 4 |
| 5 <meta name="viewport" content="width=800"> |
| 6 <style> |
| 7 body { |
| 8 width: 800px; |
| 9 margin: 0; |
| 10 overflow-y: hidden; |
| 11 } |
| 12 </style> |
| 13 |
| 14 <script> |
| 15 if (window.internals) { |
| 16 window.internals.settings.setTextAutosizingEnabled(true); |
| 17 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); |
| 18 } else if (window.console && console.warn) { |
| 19 console.warn("This test depends on the Text Autosizing setting being true, s
o run it in DumpRenderTree, or manually enable Text Autosizing, and either use a
mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_
FORCE_TEXT_AUTOSIZING_ON_DESKTOP."); |
| 20 } |
| 21 </script> |
| 22 |
| 23 </head> |
| 24 <body> |
| 25 |
| 26 <textarea rows="12" style="width: 100%; font-size: 16px"> |
| 27 The text inside this textarea should be autosized. Lorem ipsum dolor sit amet, c
onsectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolor
e magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco labor
is nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehender
it in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sin
t occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit ani
m id est laborum. |
| 28 </textarea> |
| 29 |
| 30 </body> |
| 31 </html> |
| OLD | NEW |