tor-browser

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

invalid-nested-rules.html (726B)


      1 <!DOCTYPE html>
      2 <title>CSS Syntax: invalid rule errors when nested</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-syntax/#invalid-rule-error">
      4 <link rel="help" href="https://drafts.csswg.org/css-syntax/#consume-qualified-rule">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style id=style>
      8  .a {
      9    .b <::::invalid::::> {}
     10    & .c {}
     11  }
     12 </style>
     13 <script>
     14  test(() => {
     15    let rules = style.sheet.rules;
     16    assert_equals(rules.length, 1);
     17    let childRules = rules[0].cssRules;
     18    assert_equals(childRules.length, 1);
     19    assert_equals(childRules[0].selectorText, '& .c');
     20  }, 'Continues parsing after block on invalid rule error');
     21 </script>