4 <script src="../../../resources/js-test-pre.js"></script>
18 font-display: block swap;
38 font-display: fallback;
43 font-display: optional;
53 <div id="test9" style="font-display: block"></div>
55 description("This test makes sure that the font-display descriptor in @font-face is appropriately parsed.");
57 var sheet = document.getElementById("style").sheet;
58 shouldBeEqualToString("sheet.rules[0].style.getPropertyValue('font-display')", "");
59 shouldBeEqualToString("sheet.rules[1].style.getPropertyValue('font-display')", "");
60 shouldBeEqualToString("sheet.rules[2].style.getPropertyValue('font-display')", "");
61 shouldBeEqualToString("sheet.rules[3].style.getPropertyValue('font-display')", "auto");
62 shouldBeEqualToString("sheet.rules[4].style.getPropertyValue('font-display')", "block");
63 shouldBeEqualToString("sheet.rules[5].style.getPropertyValue('font-display')", "swap");
64 shouldBeEqualToString("sheet.rules[6].style.getPropertyValue('font-display')", "fallback");
65 shouldBeEqualToString("sheet.rules[7].style.getPropertyValue('font-display')", "optional");
66 shouldBeEqualToString("sheet.rules[8].style.getPropertyValue('font-display')", "");
67 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test9')).getPropertyValue('font-display')", "");
69 <script src="../../../resources/js-test-post.js"></script>