summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/letter-spacing/letter-spacing-211.html
blob: 1e6d63fdd7898b3924f4d6c4858758bf620df0ac (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
<!DOCTYPE html>
<html  lang="en" >
<meta charset="utf-8">
<title>letter-spacing at element boundaries</title>
<link rel='author' title='Elika J. Etemad' href='http://fantasai.inkedblade.net/contact'>
<link rel='help' href='https://www.w3.org/TR/css-text-3/#letter-spacing'>
<link rel='help' href='https://www.w3.org/TR/css-text-decor-4/#emphasis-marks'>
<link rel='match' href='reference/letter-spacing-211-ref.html'>
<meta name="assert" content="Emphasis marks are centered on characters, not characters + spacing.">
<style type='text/css'>
  @import "/fonts/ahem.css";
  .contain {
    font: 20px/1 Ahem;
    margin: 1em;
  }
  .ls1 {
    letter-spacing: 1em;
  }
  .control p {
    white-space: pre-wrap;
    color: blue;
  }
  p {
    letter-spacing: 0;
    margin: 0;
    text-emphasis: dot;
  }
</style>

<div id='instructions'>Test passes if the blue pattern is identical to the black one.</div>

<div class="contain">
  <p class="ls1">ABC</p>
</div>

<div class="contain control">
  <p>A B C
</div>