| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html style="font-size: 16px"> | 2 <html style="font-size: 16px"> |
| 3 <head> | 3 <head> |
| 4 | 4 |
| 5 <meta name="viewport" content="width=800"> | 5 <meta name="viewport" content="width=800"> |
| 6 <style> | 6 <style> |
| 7 body { | 7 body { |
| 8 width: 800px; | 8 width: 800px; |
| 9 margin: 0; | 9 margin: 0; |
| 10 overflow-y: hidden; | 10 overflow-y: hidden; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 if (window.internals) { | 15 if (window.internals) { |
| 16 window.internals.settings.setTextAutosizingEnabled(true); | 16 window.internals.settings.setTextAutosizingEnabled(true); |
| 17 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); | 17 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480); |
| 18 } else if (window.console && console.warn) { | 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."); | 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 } | 20 } |
| 21 </script> | 21 </script> |
| 22 | 22 |
| 23 </head> | 23 </head> |
| 24 <body> | 24 <body> |
| 25 | 25 |
| 26 <div> | 26 <div> |
| 27 The below list items should be autosized to 40px computed font-size (16 * 800/32
0). Also the corresponding list markers should increase in size appropriately. | 27 The below list items should be autosized to 40px computed font-size (16 * 800/32
0). Also the corresponding list markers should increase in size appropriately. T
he whole list is shifted to the right by 11px (7 (marker width) * (2.5-1) rounde
d) to compensate the scaling of list item markers and make sure they don't get c
hopped off. |
| 28 </div> | 28 </div> |
| 29 <ul> | 29 <ul> |
| 30 <li><a>List item with a link</a></li> | 30 <li><a>List item with a link</a></li> |
| 31 <li><b>List item with bold text</b></li> | 31 <li><b>List item with bold text</b></li> |
| 32 <li>Simple plain list item</li> | 32 <li>Simple plain list item</li> |
| 33 <li><a>List item with a link as part of anonymous block</a><div></div></li> | 33 <li><a>List item with a link as part of anonymous block</a><div></div></li> |
| 34 </ul> | 34 </ul> |
| 35 | 35 |
| 36 </body> | 36 </body> |
| 37 </html> | 37 </html> |
| OLD | NEW |