tor-browser

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

nth-child-of-attribute-crash.html (484B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <style>
      4 #elements [blue] {
      5    color: blue;
      6 }
      7 #elements :nth-child(1 of :not([blue])) {
      8    color: revert;
      9 }
     10 </style>
     11 <div id="elements">
     12  <div blue>Child 1</div>
     13  <div>Child 2</div>
     14 </div>
     15 <script>
     16 requestAnimationFrame(() =>
     17    requestAnimationFrame(() => {
     18        elements.children[1].setAttribute("blue", "");
     19        elements.children[1].removeAttribute("blue");
     20        elements.children[0].removeAttribute("blue");
     21    }));
     22 </script>