tor-browser

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

CSSCounterStyleRule.html (698B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSSOM - CSSCounterStyleRule interface</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#csscounterstylerule">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style>
      8  @counter-style foo {
      9    system: cyclic;
     10    symbols: ;
     11    suffix: " ";
     12  }
     13 </style>
     14 <script>
     15 test(function() {
     16  // TODO: The exact serialization isn't well specified (the ordering of the
     17  // descriptors isn't defined).
     18  let rule = document.styleSheets[0].cssRules[0];
     19  assert_false(rule.cssText.includes('\n'));
     20 }, "CSSCounterStyleRule.cssText doesn't serialize with newlines");
     21 </script>