summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-matching/descriptor-ranges-ref.html
blob: b76460fb98e5b452e9d3f1f3d169cd90354ba60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset=utf-8>

<style id="dynamicStyles">
</style>

<div id="testContents" style="columns: 2; font-size: 10px;">
</div>

<script>
/* Reference file creates only a single face in each test font-family,
   so that it will always have the expected rendering without relying
   on the font-matching algorithm to choose between faces. */
function createFontFaceRules(family, descriptor, expectedMatch, unexpectedMatch) {
    return `@font-face { font-family: ${family}; src: url(../fonts/Chunkfive.otf); ${descriptor}: ${expectedMatch}; }\n`;
}
</script>

<script src="descriptor-ranges.js"></script>