1
0
Fork 0
firefox/layout/reftests/font-matching/descriptor-ranges-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
619 B
HTML

<!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>