tor-browser

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

text-lcp-followed-by-image-softnav-lcp.tentative.html (885B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Detect simple soft navigation.</title>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/testdriver.js"></script>
      9 <script src="/resources/testdriver-vendor.js"></script>
     10 <script src="resources/soft-navigation-helper.js"></script>
     11 </head>
     12 <body>
     13  <main id=main>
     14    <div>
     15      <a id=link style="font-size: 4em">Click me!</a>
     16    </div>
     17  </main>
     18  <script>
     19    testSoftNavigation({
     20      testName: "Test that a text LCP followup by a smaller soft navigation image"
     21        + " LCP properly queues an LCP entry",
     22      addContent: async () => {
     23        const main = document.getElementById("main");
     24        main.removeChild(document.getElementsByTagName("div")[0]);
     25        await addImageToMain();
     26      },
     27      });
     28  </script>
     29 </body>
     30 </html>