tor-browser

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

idlharness.html (802B)


      1 <!doctype html>
      2 <title>css-counter-styles IDL tests</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-counter-styles/">
      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  @counter-style triangle {
     11    system: cyclic;
     12    symbols: ;
     13    suffix: " ";
     14  }
     15 </style>
     16 <script>
     17  'use strict';
     18  idl_test(
     19    ['css-counter-styles'],
     20    ['cssom'],
     21    idl_array => {
     22      try {
     23        self.counter = document.styleSheets[0].rules[0];
     24      } catch (e) {
     25        // Will be surfaced when counter is undefined below.
     26      }
     27 
     28      idl_array.add_objects({
     29        CSSCounterStyleRule: ['counter'],
     30      });
     31    }
     32  );
     33 </script>