tor-browser

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

range-option-value-change-repaint.html (756B)


      1 <!doctype html>
      2 <html class=reftest-wait>
      3 <title>The range is repainted if the value of an option in the range's list changes</title>
      4 <link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1805105">
      5 <link rel=author href="mailto:zach@zrhoffman.net" title="Zach Hoffman">
      6 <link rel=match href=range-tick-marks-05-ref.html>
      7 <script src=/common/reftest-wait.js></script>
      8 <input type=range step=3 value=1 min=-5 max=5 list=tickmarks>
      9 <datalist id=tickmarks>
     10  <option value=-2></option>
     11  <option value=1 id=to-change></option>
     12 </datalist>
     13 <script>
     14  requestAnimationFrame(() =>
     15    requestAnimationFrame(() => {
     16      const toChange = document.querySelector("option#to-change");
     17      toChange.value = 4;
     18      takeScreenshot();
     19    }));
     20 </script>