summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/marker-unicode-bidi-default.html
blob: e732009a57b993d4063d9e498f52670bfc78f1a1 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<meta charset="utf-8">
<title>::marker has 'unicode-bidi: isolate' by default</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com" />
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="match" href="marker-unicode-bidi-default-ref.html">
<meta name="assert" content="Checks that the markers are isolated from the list items by the bidi algorithm">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
ol {
  float: left;
  list-style-position: inside;
}
.rtl {
  direction: rtl;
}

li:nth-child(1) { --marker: "\627 \644 " }
li:nth-child(2) { --marker: "\61 \627 \644 " }
li:nth-child(3) { --marker: "\627 \644 \62 " }
li:nth-child(4) { --marker: "\61 \627 \644 \62 " }
li:nth-child(5) { --marker: "\61 \62 \627 \644 " }
li:nth-child(6) { --marker: "\627 \644 \61 \62 " }
li:nth-child(7) { --marker: "\31 \627 \644 " }
li:nth-child(8) { --marker: "\627 \644 \32 " }
li:nth-child(9) { --marker: "\31 \627 \644 \32 " }

.string > li {
  list-style-type: var(--marker);
}
.marker > li::marker {
  content: var(--marker);
}
::marker {
  color: blue;
}
span {
  background: yellow;
}
</style>
<ol class="string ltr">
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
</ol>
<ol class="string rtl">
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
</ol>
<ol class="marker ltr">
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
</ol>
<ol class="marker rtl">
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
  <li><span>0</span></li>
</ol>