blob: ccf3215b7f05633c75a872265d67aded80055df4 (
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Arabic subtending mark, CSS counter, Noto Nastaliq Urdu</title>
<style>
@font-face {
font-family: "NotoNastaliqUrduWeb";
src: url("../fonts/NotoNastaliqUrdu-Regular.ttf") format("truetype");
}
ul {
text-align: right;
margin-right: 40px;
font-family: "NotoNastaliqUrduWeb", sans-serif;
counter-reset: c;
list-style: none;
}
ul li::before {
content: counter(c, arabic-indic) "";
counter-increment: c;
unicode-bidi: bidi-override;
}
/* Force double-digit numbers to render "backwards" to match the testcase */
ul li:nth-child(10)::before {
content: "٠١" "";
}
ul li:nth-child(12)::before {
content: "٢١" "";
}
</style>
</head>
<body>
<ul lang="ur" dir="ltr">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</body>
</html>
|