tor-browser

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

nth-last-child-invalid.html (680B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>CSS Selectors: :nth-last-child() with no argument</title>
      5    <link rel="help" href="https://crbug.com/355451192">
      6    <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
      7    <script src="/resources/testharness.js"></script>
      8    <script src="/resources/testharnessreport.js"></script>
      9    <style>
     10      #target:nth-last-child() { color: red; }
     11      #target { color: green; }
     12    </style>
     13  <head>
     14  <body>
     15  <body>
     16    <div id="target">Test passes if this line is green.</div>
     17    <script>
     18  test(() => {
     19    assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
     20  });
     21    </script>
     22  </body>
     23 </html>