summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/letter-spacing/reference/letter-spacing-bengali-yaphala-001-ref.html
blob: a1ff2e053a540ec1279b0733db40dba5add1b7e6 (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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>CSS Text reference: letter-spacing and Bengali ya-phala (yo-pholo)</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">

<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;
}
.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="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer b">
  <div class="inner" lang="bn">
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer c">
  <div class="inner" lang="bn">
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer d">
  <div class="inner" lang="bn">
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer e">
  <div class="inner" lang="bn">
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>

<div class="outer f">
  <div class="inner" lang="bn">
    <div class="mask">অ্যান্টিগুয়া<span style="width:3em"></span></div>
  </div>
  <div class="inner" lang="bn">
    <div class="mask">এ্যাডভোকেট<span style="width:4em"></span></div>
  </div>
</div>