tor-browser

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

sticky-dialog.html (611B)


      1 <!DOCTYPE html>
      2 <title>position:sticky computes to position:absolute</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-position-4/#top-styling">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <dialog style="position: sticky"></dialog>
      7 <script>
      8 test(() => {
      9  const dialog = document.querySelector('dialog');
     10  assert_equals(getComputedStyle(dialog).position, 'sticky');
     11  dialog.showModal();
     12  assert_equals(getComputedStyle(dialog).position, 'absolute');
     13 }, 'Once in the top-layer position:sticky computes to position:absolute');
     14 </script>