CSSFontFaceRule.html (721B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSSOM - CSSFontFaceRule interface</title> 4 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#cssfontfacerule"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <style> 8 @font-face { 9 src: local("foo"); 10 font-family: foo; 11 font-weight: bold; 12 } 13 </style> 14 <script> 15 test(function() { 16 // TODO: The exact serialization isn't consistent across browsers 17 // (Firefox doesn't preserve ordering of the descriptors, WebKit/Blink does). 18 let rule = document.styleSheets[0].cssRules[0]; 19 assert_false(rule.cssText.includes('\n')); 20 }, "CSSFontFaceRule.cssText doesn't serialize with newlines"); 21 </script>