tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

cssstyledeclaration-cssfontrule.tentative.html (786B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSSStyleDeclaration for a CSSFontRule</title>
      4 <link rel="help" href="https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface">
      5 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#cssfontfacerule">
      6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5649#issuecomment-755796005">
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <style>
     10 @font-face {}
     11 </style>
     12 <script>
     13 
     14 const fontFaceRule = document.styleSheets[0].cssRules[0];
     15 
     16 test(() => {
     17  assert_true("unicode-range" in fontFaceRule.style);
     18  assert_idl_attribute(fontFaceRule.style, "unicode-range");
     19 }, "a CSSStyleDeclaration for a CSSFontRule contains a unicode-range attribute");
     20 
     21 
     22 </script>