Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-fonts/crash-font-face-invalid-descriptor.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<script type="text/javascript" src="/resources/testharness.js"></script>
<script type="text/javascript" src="/resources/testharnessreport.js"></script>
<style>
@font-face {}
</style>
<script>
test(() => {
let rule = document.styleSheets[0].cssRules[0];
rule.style.backgroundPosition = 'bottom 10px right 20px';
}, 'Do not crash when setting an invalid @font-face descriptor via CSSOM');
</script>