tor-browser

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

cssom-range-setter-invalid.html (805B)


      1 <!DOCTYPE html>
      2 <title>CSSCounterStyleRule range setter with invalid values</title>
      3 <link rel="help" href="https://www.w3.org/TR/css-counter-styles-3/#the-csscounterstylerule-interface">
      4 <link rel="author" href="mailto:xiaochengh@chromium.org">
      5 <link rel="match" href="cssom-range-setter-ref.html">
      6 <style id="sheet">
      7 @counter-style foo {
      8  system: cyclic;
      9  symbols: A B C;
     10  range: 1 2;
     11 }
     12 </style>
     13 
     14 <ol style="list-style-type: foo; list-style-position: inside">
     15  <li></li>
     16  <li></li>
     17  <li></li>
     18 </ol>
     19 
     20 <script>
     21 // Force layout update before changing the rule
     22 document.body.offsetWidth;
     23 
     24 const sheet = document.getElementById('sheet');
     25 const foo_rule = sheet.sheet.rules[0];
     26 
     27 // Invalid values should be ignored
     28 foo_rule.range = "1 2 3";
     29 foo_rule.range = "3 1"
     30 foo_rule.range = "1 infinity"
     31 </script>