| 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 overflow-x: hidden; | 11 overflow-x: hidden; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 | 14 |
| 15 </head> | 15 </head> |
| 16 <body> | 16 <body> |
| 17 | 17 |
| 18 <div style="font-size: 2.5rem"> | 18 <div style="font-size: 2.5rem"> |
| 19 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 36px (60 (widest autosized marker width
) * (1 - 1/2.5) rounded) to compensate the scaling of list item numbers and make
sure they don't get chopped off. | 19 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 36px (60 (widest autosized marker width
) * (1 - 1/2.5) rounded) to compensate the scaling of list item numbers and make
sure they don't get chopped off. |
| 20 </div> | 20 </div> |
| 21 <ol style="-webkit-margin-start: 36px"> | 21 <ol> |
| 22 <li style="font-size: 2.5rem">Lorem ipsum dolor sit amet, consectetur adipiscing
elit.</li> | 22 <li style="font-size: 2.5rem">Lorem ipsum dolor sit amet, consectetur adipiscing
elit.</li> |
| 23 <li style="font-size: 2.5rem">plain text</li> | 23 <li style="font-size: 2.5rem">plain text</li> |
| 24 <li style="font-size: 2.5rem"><a href='#'>hyperlinked</a></li> | 24 <li style="font-size: 2.5rem"><a href='#'>hyperlinked</a></li> |
| 25 <li style="font-size: 2.5rem"><a href='#'>hyperlinked</a> example</li> | 25 <li style="font-size: 2.5rem"><a href='#'>hyperlinked</a> example</li> |
| 26 <li style="font-size: 2.5rem"><em>emphasized</em></li> | 26 <li style="font-size: 2.5rem"><em>emphasized</em></li> |
| 27 <li style="font-size: 2.5rem"><em>emphasized</em> example</li> | 27 <li style="font-size: 2.5rem"><em>emphasized</em> example</li> |
| 28 <li style="font-size: 2.5rem"><b>bold</b></li> | 28 <li style="font-size: 2.5rem"><b>bold</b></li> |
| 29 <li style="font-size: 2.5rem"><b>bold</b> example</li> | 29 <li style="font-size: 2.5rem"><b>bold</b> example</li> |
| 30 <li style="font-size: 2.5rem"><i>italic</i></li> | 30 <li style="font-size: 2.5rem"><i>italic</i></li> |
| 31 <li style="font-size: 2.5rem"><i>italic</i> example</li> | 31 <li style="font-size: 2.5rem"><i>italic</i> example</li> |
| 32 <li style="font-size: 2.5rem"><del>strikethrough</del></li> | 32 <li style="font-size: 2.5rem"><del>strikethrough</del></li> |
| 33 <li style="font-size: 2.5rem"><del>strikethrough</del> example</li> | 33 <li style="font-size: 2.5rem"><del>strikethrough</del> example</li> |
| 34 </ol> | 34 </ol> |
| 35 | 35 |
| 36 </body> | 36 </body> |
| 37 </html> | 37 </html> |
| OLD | NEW |