tor-browser

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

trailing-braces.html (546B)


      1 <!DOCTYPE html>
      2 <title>CSS Syntax: trailing braces</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-syntax-1/">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style id=style>
      7  #target1 {
      8    color:green;
      9    color:red{};
     10    color:red {};
     11  }
     12 </style>
     13 <div id=target1>Green</div>
     14 <script>
     15  test(() => {
     16    let rules = style.sheet.rules;
     17    assert_equals(rules.length, 1);
     18    assert_equals(rules[0].style.color, 'green');
     19  }, 'Trailing braces are not valid');
     20 </script>