tor-browser

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

cssom-pad-setter-invalid.html (786B)


      1 <!DOCTYPE html>
      2 <title>CSSCounterStyleRule pad 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-pad-setter-ref.html">
      6 <style id="sheet">
      7 @counter-style foo {
      8  system: extends decimal;
      9  pad: 3 '0';
     10 }
     11 </style>
     12 
     13 <ol style="list-style-type: foo; list-style-position: inside">
     14  <li></li>
     15  <li></li>
     16  <li></li>
     17 </ol>
     18 
     19 <script>
     20 // Force layout update before changing the rule
     21 document.body.offsetWidth;
     22 
     23 const sheet = document.getElementById('sheet');
     24 const foo_rule = sheet.sheet.rules[0];
     25 
     26 // Invalid values should be ignored
     27 foo_rule.pad = '-1 "0"';
     28 foo_rule.pad = '3';
     29 foo_rule.pad = '3 "X" "Y"';
     30 </script>