summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/list-style-type-decimal-line-height-ref.html
blob: 856fe43d8ef3150fe6cdf2eec8774afd7ff92ea6 (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
38
39
40
41
42
43
<!doctype html>
<meta charset="utf-8">
<title>CSS Lists Reference - check that the line height is the same between different forms of ::markers</title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<style>
  div {
    display: grid;
    grid-template-columns: 100px 100px auto;
    align-items: start;
    background: red;
  }
  li {
    line-height: 100%;
    counter-set: list-item 1;
  }
  ol {
    margin: 0;
    padding: 0;
    padding-left: 40px;
    background: green;
  }
  ::marker {
    content: "1. ";
  }
</style>

<div>
  <ol>
    <li>foo</li>
    <li>bar</li>
    <li>baz</li>
  </ol>
  <ol>
    <li>foo</li>
    <li>bar</li>
    <li>baz</li>
  </ol>
  <ol>
    <li>foo</li>
    <li>bar</li>
    <li>baz</li>
  </ol>
</div>