Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 51 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-fonts/idlharness.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Fonts IDL tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<style>
div { display: block; }
</style>
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
}
</style>
<script>
"use strict";
idl_test(
["css-fonts"],
["cssom"],
idl_array => {
idl_array.add_objects({
CSSRule: ['cssRule'],
CSSFontFaceRule: ['cssFontFaceRule'],
});
self.cssRule = document.styleSheets[0].cssRules[0];
self.cssFontFaceRule = document.styleSheets[1].cssRules[0];
}
);
</script>