blob: 66527d1a176d873c7524f6da7dc3fc96288f919d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!DOCTYPE html>
<html style="font-size: 16px">
<head>
<meta name="viewport" content="width=800">
<style>
body {
width: 800px;
margin: 0;
overflow-y: hidden;
overflow-x: hidden;
}
</style>
</head>
<body>
<div style="font-size: 2.5rem">
The below list items should be autosized to 40px computed font-size (16 * 800/320). Also the corresponding list markers should increase in size appropriately. The 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.
</div>
<ol>
<li style="font-size: 2.5rem">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
<li style="font-size: 2.5rem">plain text</li>
<li style="font-size: 2.5rem"><a href='#'>hyperlinked</a></li>
<li style="font-size: 2.5rem"><a href='#'>hyperlinked</a> example</li>
<li style="font-size: 2.5rem"><em>emphasized</em></li>
<li style="font-size: 2.5rem"><em>emphasized</em> example</li>
<li style="font-size: 2.5rem"><b>bold</b></li>
<li style="font-size: 2.5rem"><b>bold</b> example</li>
<li style="font-size: 2.5rem"><i>italic</i></li>
<li style="font-size: 2.5rem"><i>italic</i> example</li>
<li style="font-size: 2.5rem"><del>strikethrough</del></li>
<li style="font-size: 2.5rem"><del>strikethrough</del> example</li>
</ol>
</body>
</html>
|