summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/text-autosizing/list-marker-with-links-autosizing.html
blob: 2670758bf4686a74d647a128b2222ceabd36d378 (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
<!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;
  }
  #nomarker {
    list-style-type: none;
  }
</style>

<script src="resources/autosizingTest.js"></script>

</head>
<body>

<div>
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 8px (14 (autosized marker width) * (1 - 1/2.5) rounded) to compensate the scaling of list item markers and make sure they don't get chopped off.
</div>
<ul>
<li><a>List item with a link</a></li>
<li><b>List item with bold text</b></li>
<li>Simple plain list item</li>
<li><a>List item with a link as part of anonymous block</a><div></div></li>
<li id="nomarker">Item without a marker<li>
</ul>

</body>
</html>