tor-browser

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

idlharness.html (845B)


      1 <!doctype html>
      2 <title>CSS Fonts IDL tests</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/WebIDLParser.js"></script>
      7 <script src="/resources/idlharness.js"></script>
      8 
      9 <style>
     10  div { display: block; }
     11 </style>
     12 <style>
     13  @font-face {
     14    font-family: fwf;
     15    src: url(support/fonts/FontWithFancyFeatures.otf);
     16  }
     17 </style>
     18 
     19 <script>
     20  "use strict";
     21 
     22  idl_test(
     23    ["css-fonts-5", "css-fonts"],
     24    ["cssom"],
     25    idl_array => {
     26      idl_array.add_objects({
     27        CSSRule: ['cssRule'],
     28        CSSFontFaceRule: ['cssFontFaceRule'],
     29      });
     30      self.cssRule = document.styleSheets[0].cssRules[0];
     31      self.cssFontFaceRule = document.styleSheets[1].cssRules[0];
     32    }
     33  );
     34 </script>