tor-browser

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

before-in-display-none-thcrash.html (678B)


      1 <!doctype html>
      2 <title>CSS Test: Invalidating style inside display:none with ::before should not crash.</title>
      3 <link rel="help" href="https://crbug.com/1013570">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7  #outer { display: none }
      8  #outer::before { content: " "; }
      9 </style>
     10 <div id="outer">
     11  <div id="inner"></div>
     12 </div>
     13 <script>
     14  test(() => {
     15    assert_equals(getComputedStyle(inner).color, "rgb(0, 0, 0)");
     16    inner.style.color = "green";
     17    assert_equals(getComputedStyle(inner).color, "rgb(0, 128, 0)");
     18  }, "Invalidating style inside display:none with ::before should not crash.");
     19 </script>