tor-browser

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

idlharness.html (739B)


      1 <!doctype html>
      2 <title>CSS Pseudo Element API IDL tests</title>
      3 <meta name="timeout" content="long">
      4 <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#cssom">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="/resources/WebIDLParser.js"></script>
      8 <script src="/resources/idlharness.js"></script>
      9 <script>
     10 'use strict';
     11 
     12 idl_test(
     13  ['css-pseudo'],
     14  ['cssom', 'html', 'dom'],
     15  idl_array => {
     16    idl_array.add_objects({
     17      Window: ['window'],
     18      CSSPseudoElementList: ['beforeElements'],
     19      CSSPseudoElement: ['beforeElements.item(0)'],
     20    });
     21 
     22    window.beforeElements =
     23      window.getPseudoElements(document.body, 'before');
     24  }
     25 );
     26 </script>