tor-browser

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

idlharness.html (1129B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <head>
      5  <meta charset="utf-8">
      6  <title>CSS Conditional Rules IDL tests</title>
      7  <link rel="help" href="https://drafts.csswg.org/css-conditional/">
      8  <script src="/resources/testharness.js"></script>
      9  <script src="/resources/testharnessreport.js"></script>
     10  <script src="/resources/WebIDLParser.js"></script>
     11  <script src="/resources/idlharness.js"></script>
     12  <!-- used to provide objects -->
     13  <style>
     14    div { display: block; }
     15  </style>
     16  <style>
     17    @media print { }
     18  </style>
     19  <style>
     20    @supports (display: block) { }
     21  </style>
     22 </head>
     23 
     24 <body>
     25  <div id="log"></div>
     26 
     27  <script>
     28    'use strict';
     29    idl_test(
     30      ['css-conditional'],
     31      ['cssom', 'dom'],
     32      idl_array => {
     33        idl_array.add_objects({
     34          CSSRule: ['cssRule'],
     35          CSSMediaRule: ['cssMediaRule'],
     36          CSSSupportsRule: ['cssSupportsRule'],
     37        });
     38        self.cssRule = document.styleSheets[0].cssRules[0];
     39        self.cssMediaRule = document.styleSheets[1].cssRules[0];
     40        self.cssSupportsRule = document.styleSheets[2].cssRules[0];
     41      }
     42    );
     43  </script>
     44 
     45 </body>
     46 
     47 </html>