summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-bengali-yaphala-001.html
blob: 47349ea88b40b382370b74bdd4951f9f218e3f86 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>CSS Text test: letter-spacing and Bengali ya-phala (yo-pholo)</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="match" href="reference/letter-spacing-bengali-yaphala-001-ref.html">
<meta name="assert" content="Letter-spacing does not separate yaphala from the preceding letter.">
<link rel="help" href="https://drafts.csswg.org/css-text/#letter-spacing-property">
<link rel="help" href="https://github.com/w3c/line_paragraph_tests/issues/81">

<style>
/* We try various "likely" font names, as well as generics; those not available
   on the platform will simply fall back to a default. */
.outer.a {
  font-family: sans-serif;
}
.outer.b {
  font-family: serif;
}
.outer.c {
  font-family: Bangla MN, serif;
}
.outer.d {
  font-family: Bangla Sangam MN, sans-serif;
}
.outer.e {
  font-family: Nirmala UI, Vrinda, sans-serif;
}
.outer.f {
  font-family: Noto Sans Bengali, sans-serif;
}
.inner {
  position: relative;
  margin: 1em;
  height: 2em;
}
.test {
  padding: 0.25em;
  color: red;
  letter-spacing: 1em;
  position: absolute;
}
.mask {
  padding: 0.25em;
  color: green;
  background: green;
  position: absolute;
}
span {
  display: inline-block;
}
</style>

<p>Test passes if the red Bengali text is entirely hidden by the green blocks.</p>

<div class="outer a">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer b">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer c">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer d">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer e">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer f">
  <div class="inner" lang="bn">
    <div class="test">অ্যান্টিগুয়া</div><!-- there should be 3 letter-spacing opportunities in this word -->
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="test">এ্যাডভোকেট</div><!-- there should be 4 letter-spacing opportunities in this word -->
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>