4 <meta http-equiv=
"Content-Type" content=
"text/html;charset=utf-8">
5 <title>Letter spacing and Ligature
</title>
7 <style type=
"text/css">
9 font-family: megalopolis
;
10 src: url
(../../third_party/MEgalopolis/MEgalopolisExtra.woff) format
("woff");
14 -moz-font-feature-settings:"frac" 1, "dlig" 1;
15 -moz-font-feature-settings:"frac=1, dlig=1";
16 -ms-font-feature-settings:"frac" 1, "dlig" 1;
17 -o-font-feature-settings:"frac" 1, "dlig" 1;
18 -webkit-font-feature-settings:"frac" 1, "dlig" 1;
19 font-feature-settings:"frac" 1, "dlig" 1;
23 font-variant-ligatures: discretionary-ligatures
;
31 font-family: megalopolis
;
34 p
{ font-family: serif
; font-style: italic
; }
37 <script src=
"../../resources/testharness.js"></script>
38 <script src=
"../../resources/testharnessreport.js"></script>
40 setup({ explicit_done
: true });
41 function testLetterSpaceAndLigature(element
) {
42 var elementWidthWithLigatureAndLetterSpacing
= element
.getBoundingClientRect().width
;
43 var elementWidthWithLetterSpacing
= letterSpace
.getBoundingClientRect().width
;
45 assert_equals(elementWidthWithLigatureAndLetterSpacing
, elementWidthWithLetterSpacing
, "Ligature not applied due to letter spacing.");
46 }, "Ligature expected not to be applied due to letter spacing.");
50 testLetterSpaceAndLigature(dligSpan
);
51 testLetterSpaceAndLigature(fontVariantSpan
);
56 <body onload=
"runTest();">
57 <div class=
"dligDiv common">
58 <span id=
"dligSpan">CACACACA
</span>
61 <div class=
"fontVariantDiv common">
62 <span id=
"fontVariantSpan">CACACACA
</span>
66 <span id=
"letterSpace">CACACACA
</span>