summaryrefslogtreecommitdiffstats
path: root/layout/reftests/line-breaking/hyphens-2-ref.html
blob: e06e764a9dbd8d3db1d56601673dbc18a97a4128 (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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
p { margin: 5px 1em; }
</style>
</head>
<body>

<!-- bug 827779:
     Allow break after hyphen even when there is adjacent closing punctuation
     before the hyphen, or opening punctuation after it. -->
<p>
  extra-<br>“special”<br>
  “extra”-<br>special<br>
  “extra”-<br>“special”<br>
  extra-<br>«special»<br>
  «extra»-<br>special<br>
  «extra»-<br>«special»<br>
  extra-<br>(special)<br>
  (extra)-<br>special<br>
  (extra)-<br>(special)
</p>

<!-- but not in variants such as these: -->
<p>
  (extra-)special<br>
  extra(-special)
</p>

</body>
</html>