summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/list-style-type-string-005-ref.html
blob: 703ceff068ec547137b107472dd7ce912e6abe2a (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CSS Reference: String value of list-style-type with bidi text</title>
  <link rel="author" title="Oriol Brufau" href="mailto:obrufau@gmail.com">
  <style>
    .list {
      width: 50%;
      box-sizing: border-box;
      float: left;
      padding-inline-start: 14ch;
      margin: 0;
      line-height: 1.6;
      list-style: none;
    }
    .rtl { direction: rtl }
    .list > ::before {
      unicode-bidi: isolate;
      display: inline-flex;
      flex-direction: row-reverse;
      width: 0px;
      white-space: pre;
    }
    .list > :nth-child(1)::before { content: "\627 \644 " }
    .list > :nth-child(2)::before { content: "\61 \627 \644 " }
    .list > :nth-child(3)::before { content: "\627 \644 \62 " }
    .list > :nth-child(4)::before { content: "\61 \627 \644 \62 " }
    .list > :nth-child(5)::before { content: "\61 \62 \627 \644 " }
    .list > :nth-child(6)::before { content: "\627 \644 \61 \62 " }
    .list > :nth-child(7)::before { content: "\31 \627 \644 " }
    .list > :nth-child(8)::before { content: "\627 \644 \32 " }
    .list > :nth-child(9)::before { content: "\31 \627 \644 \32 " }
    .list > :nth-child(10)::before { content: "\31 \32 \627 \644 " }
    .list > :nth-child(11)::before { content: "\627 \644 \31 \32 " }
  </style>
</head>
<body>
  <ol class="list ltr">
    <li>item 1</li>
    <li>item 2</li>
    <li>item 3</li>
    <li>item 4</li>
    <li>item 5</li>
    <li>item 6</li>
    <li>item 7</li>
    <li>item 8</li>
    <li>item 9</li>
    <li>item 10</li>
    <li>item 11</li>
  </ol>
  <ul class="list rtl">
    <li>item 1</li>
    <li>item 2</li>
    <li>item 3</li>
    <li>item 4</li>
    <li>item 5</li>
    <li>item 6</li>
    <li>item 7</li>
    <li>item 8</li>
    <li>item 9</li>
    <li>item 10</li>
    <li>item 11</li>
  </ul>
</body>
</html>